Base64 Encoder / Decoder
Encode any text to Base64 or decode Base64 back to plain text. Also supports URL encoding/decoding. Handles UTF-8 correctly. Includes Swap button, real-time validation, and copy-to-clipboard.
Common uses of Base64
Embedding images in HTML/CSS (data URIs), encoding API credentials, transmitting binary data in JSON, encoding email attachments (MIME), and storing binary data in databases or environment variables.
How it works
This base64 encoder / decoder runs entirely in your browser β no data is sent to any server. Simply fill in the fields above and the result updates instantly. You can copy the output with the copy button provided.
Frequently Asked Questions
What is Base64 used for?
Base64 is used to encode binary data as ASCII text for safe transmission β in data URIs, HTTP Basic Auth headers, JWT tokens, email attachments, and JSON payloads.
What is the difference between Base64 and URL encoding?
Base64 encodes any bytes into a 64-character alphabet. URL encoding replaces unsafe URL characters with %XX hex sequences. Use URL encoding for query parameters; Base64 for binary data in text formats.