Base64 Encoder/Decoder

Encode text or files to Base64 format, or decode Base64 strings back to their original form. All processing happens in your browser.

0 characters
How to Use Base64 Encoder/Decoder
1

Choose Mode

Select whether you want to encode or decode

2

Input Your Data

Enter text or upload a file (encoding only)

3

Get Results

Copy or download the encoded/decoded output

Instant Processing

Encode and decode in milliseconds, right in your browser

100% Private

Your data never leaves your browser. Complete privacy guaranteed

File Support

Encode any file type to Base64 format

Common Use Cases
See how Base64 encoding is used in real-world applications

Embedding Images

Embed images directly in HTML or CSS using data URIs

API Authentication

Encode credentials for basic authentication headers

Data Transmission

Safely transmit binary data over text-based protocols

Configuration Files

Store binary data in JSON or XML configuration files

Examples
Common Base64 encoding and decoding examples

Text Encoding

Plain text to Base64

Input: Hello, World! Output: SGVsbG8sIFdvcmxkIQ==

URL Encoding

URLs can be encoded for safe transmission

Input: https://example.com/page?id=123 Output: aHR0cHM6Ly9leGFtcGxlLmNvbS9wYWdlP2lkPTEyMw==

JSON Encoding

JSON data to Base64

Input: {"name":"John","age":30}Output: eyJuYW1lIjoiSm9obiIsImFnZSI6MzB9

Basic Auth Header

Username:password format

Input: username:password Output: dXNlcm5hbWU6cGFzc3dvcmQ= Usage: Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
Frequently Asked Questions