Base64 Encoder/Decoder

Encode text to Base64 or decode Base64 back to readable text.

Encode any text, including emoji and accented characters, into Base64, or decode a Base64 string back into readable text. The tool handles UTF-8 correctly, accepts the URL-safe alphabet and missing padding when decoding, and updates the output as you type. It is useful for developers inspecting API payloads, config values, tokens and email attachments.

What is Base64?

Base64 is an encoding that represents arbitrary bytes using 64 printable ASCII characters: A-Z, a-z, 0-9, plus and slash, with equals signs as padding. Every 3 input bytes become 4 output characters, so encoded data is about 33 percent larger. It is not encryption and offers no secrecy; it only makes binary or non-ASCII data safe to pass through text-only channels such as JSON, HTTP headers, XML and email. A URL-safe variant swaps plus and slash for hyphen and underscore, and usually drops the padding, so the result can sit inside URLs and file names.

How to use Base64 Encoder/Decoder

  1. Paste your input Type or paste plain text, or a Base64 string, into the Input box.
  2. Choose Encode or Decode Click Encode to turn text into Base64, or Decode to turn Base64 back into text.
  3. Pick the alphabet if needed Tick URL-safe alphabet (encode) to output hyphen and underscore characters with no trailing equals signs.
  4. Copy the result Use the copy button on the Output box, or Clear on the input to start over.

Frequently asked questions

Is Base64 a form of encryption?

No. Base64 is a reversible encoding with no key, so anyone can decode it instantly. Use real encryption such as AES, or a password hashing function, when you need confidentiality.

Why does the output end in equals signs?

Base64 works in groups of 3 bytes. When the input length is not a multiple of 3, one or two equals signs pad the last group to 4 characters. The URL-safe option removes them.

Does it support emoji and accented characters?

Yes. Text is converted to UTF-8 bytes before encoding, and decoding reads the bytes as UTF-8, so characters outside ASCII round-trip correctly.

Why is the Base64 longer than the original?

Every 3 bytes of input become 4 characters of output, so the result is roughly one third larger, plus any padding.

Can I decode a Base64URL string from a JWT?

Yes. Decoding accepts hyphen and underscore and does not need padding. For tokens, the JWT Debugger tool also parses the header and payload for you.