Base64 Encode / Decode

Encode text to Base64 or decode Base64 to text. All in your browser.

Try it with this example

Type "Hello" and click Encode to get SGVsbG8=. Paste that back and click Decode to verify.

What is this tool?

Base64 is an encoding scheme that converts binary data into text using only 64 safe characters: letters A–Z and a–z, digits 0–9, plus (+), and slash (/). Because these characters are universally supported in text-based systems, Base64 lets you embed binary data—images, files, or encrypted payloads—inside formats that normally only allow plain text. Email attachments, data URLs in HTML, and many API payloads rely on Base64 every day.

When you encode text to Base64, each group of three bytes becomes four characters. The string "Hello" becomes SGVsbG8=. The equals sign at the end is padding when the input length isn't a multiple of three. Decoding reverses the process: paste SGVsbG8= into the decode side and you get "Hello" back. This tool handles both directions. Type or paste your input, choose Encode or Decode, and get the result instantly. All processing runs in your browser; nothing is sent to a server.

Base64 is not encryption. It does not hide or protect data—it merely represents it in a different form. Anyone can decode Base64 with a tool like this one. Use it when you need to transmit binary data over text-based channels, not when you need to keep data secret. For security, combine Base64 with proper encryption (e.g. AES) and keep keys safe. For embedding images in HTML or CSS, Base64 works well: the encoded string goes directly into a data URL.

APIs sometimes encode responses or payloads in Base64 to avoid issues with special characters or binary content in JSON. When you receive such a payload, paste it here and decode to see the original content. Config files, environment variables, and secrets are often Base64-encoded for storage. Decoding them here lets you inspect the actual value before use. Developers also use Base64 for encoding file uploads, storing binary data in databases, or passing data through systems that don't support raw bytes.

This tool is intentionally simple. No options, no extra steps—just input, encode or decode, and output. It handles Unicode text by encoding the UTF-8 bytes. If you paste binary data (e.g. from a hex dump), the encode function will work on those bytes. For most uses, pasting plain text and switching between encode and decode is all you need. Keep it handy for quick conversions without leaving your workflow.