Encode and decode Base64

Convert UTF-8 text to/from Base64 and Base64url.

Processed only in this browser
Input and settings
Processing options

Input and results are processed in this browser, without saving them to a server, URL or persistent browser storage. Clipboard content and downloaded files may remain on your device.

How to use this tool

  1. Choose encoding/decoding and the Base64 variant.
  2. Enter text or an encoded string.
  3. Copy the result and check the destination’s padding rules.

Encode a short UTF-8 string

Input and settings
Hello
Result
SGVsbG8=

Base64url output omits trailing = padding.

Processing rules and reading the result

TextEncoder produces UTF-8 bytes for Base64 encoding. Decoding checks the alphabet, padding and unused bits, then requires valid UTF-8. Spaces, tabs and line breaks in encoded input are ignored.

Limits and checks before use

Up to 500,000 input and 2 million output characters. Arbitrary image/archive bytes are not decoded as text. Base64 is encoding, not encryption, and does not conceal secrets securely.

Common questions

Does a decoding error prove the data is corrupted?

The wrong variant may be selected, or the bytes may not be UTF-8 text. Check the original data format.

Standards and references