Base64 Encoder / Decoder

Encode text to Base64 or decode a Base64 string. The direction is detected automatically and the work stays in your browser.

The output will appear here.

How Base64 Encoder / Decoder works

Encode text to Base64 or decode a Base64 string. The direction is detected automatically and the work stays in your browser.

Input Text / Base64
Output Encoded or decoded text
Works done 5,034

Related tools

Base64 Encoder / Decoder Details

Base64 Encoder and Decoder converts text into Base64 or turns a Base64 string back into readable text, picking the direction from what you paste in.

Use it to unpack an Authorization header, read a value embedded in a config file, or encode text for transport.

Step by step

Short version: give it input, run it, take the output. Details below.

  1. Paste the text or the Base64 string into the box.
  2. Run the tool: input that matches the Base64 alphabet is decoded, anything else is encoded.
  3. Copy the result or download it as a .txt file.

Limits and processing behaviour

Behaviour in detail:

  • Direction is automatic: input made only of A-Z, a-z, 0-9, plus, slash and equals is treated as Base64 to decode.
  • Encoding is UTF-8 safe, so accented characters and emoji survive the round trip.
  • Everything runs in the browser; the text is never sent to a server.
  • A malformed Base64 string surfaces the browser's own error in the output panel.

Is this the right tool

For moving between text and Base64 this page is enough. For percent escapes in a URL, the URL Encoder and Decoder is the right tool.

The tool works with text only; it does not accept file uploads or build Base64 data URIs. Base64 is an encoding, not encryption — anyone can decode it.

Small things that help

  • Basic auth values decode to "user:password", split by the colon.
  • Trailing equals signs are padding; leave them in place.
  • Encoded text is roughly a third larger than the original, which matters for size budgets.

Privacy and data handling

The work happens locally and your data stays on the device. The single outgoing request is the usage counter, and your text is not part of it. Advertising and measurement cookies operate at page level, never inside the tool.

Frequently asked questions

Type or paste your data into the Text / Base64 field, run the tool, then copy or download the Encoded or decoded text result.

Yes. While the text field is focused, Ctrl + Enter (Cmd + Enter on macOS) runs the tool.

You can copy the output or save it as a text file with the download button. The file name is based on the tool name.

The tool shows the error message in the output area. Fix the input and run it again.