Base64 Encode and Decode

Text and Files to Base64 and Back.

Loading…

Base64 writes any data using 64 safe characters, so it can travel inside JSON, email, URLs and HTML. Paste text to encode it, or paste Base64 to see what it says.

Text is handled as UTF-8, so emoji and every alphabet survive the round trip. A URL-safe variant swaps the two characters that cause trouble in web addresses, and a whole file can be encoded too.

How to use the Base64 Encode and Decode tool

  1. Choose Encode or Decode.
  2. Paste the text or the Base64 string.
  3. Copy the result.
  • Reading a Base64 value from an API or a token
  • Embedding small data in JSON or a config file
  • Basic authentication headers

Tips for the best result

  • The middle part of a JWT is URL-safe Base64; decode it to read the claims.
  • Encoded data is about a third larger than the original.

Quick facts

PriceFree
Works withText
Where it runsIn your browser, on your device
AccountNot needed

Frequently asked questions

Is Base64 encryption?

No. Anyone can decode it. It changes the form of data, not who can read it.

Why does decoding say the result is not text?

The Base64 holds a file such as an image. Use Base64 to Image for pictures.

What are the = signs at the end?

Padding that fills the last group. URL-safe Base64 usually leaves it off.

Is there a size limit?

Several megabytes work comfortably; very large files make the page slow.