Search tools

Type to filter all tools

Base64 Encoder & Decoder

Decode Base64 to text or encode text to Base64. Paste into the top box, read the result below, and flip the direction with one click. Handles Unicode correctly and reads URL-safe Base64 too.

Everything runs locally in your browser. Your data never leaves your device.

0 characters
0 characters

URL-safe Base64, line breaks and missing padding are handled automatically.

Next steps

Send this tool's output straight into another tool.

About the Base64 Encoder & Decoder

This tool converts between Base64 and readable text, in either direction. Paste into the top box, read the result in the bottom one, and flip the direction with the switch button between them.

Text is treated as UTF-8, so accents, emoji and any other Unicode survive the round trip. Decoding is forgiving: line breaks and spaces are ignored, missing padding is filled in, and the URL-safe alphabet with - and _ is understood without any setting.

What you can do

  • Decode a Base64 string to text.
  • Encode text to Base64.
  • Encode with the URL-safe alphabet for tokens and URLs.
  • Decode Base64 that has line breaks or missing padding.
  • Flip the direction and keep the result as the new input.

How to use the Base64 Encoder & Decoder

  1. 1Pick the direction. Decoding is the default, the switch button flips it.
  2. 2Paste or type into the top box.
  3. 3Read the result below and copy it.

When decoding fails

Not every string is Base64, and not all Base64 is text. If the input contains characters outside the Base64 alphabet or has an impossible length, the tool says so instead of guessing. If the Base64 is valid but decodes to bytes that are not UTF-8 text, for example a compressed file or an image, you get a clear message rather than garbled characters.