Base64 Encoder/Decoder
Encode text or files to Base64, decode Base64 and base64url back again
Related Tools
Encode text or files to Base64, decode Base64 and base64url back again
Related Tools
The Base64 Encoder/Decoder converts text, tokens and whole files to Base64 and back, in both the standard alphabet and the URL-safe one used by JWTs and query strings. Drop in an image to get a data URI for your CSS, or paste a token segment to read what's inside it.
The guide behind this tool
Base64 Is Not Encryption: What It Does and Why It Exists
Three bytes become four characters, which is where the 33 percent size increase and the trailing equals signs come from. And why it hides nothing.
Choose Encode or Decode.
Paste your text or Base64 string, or drop a file in to encode it.
Copy the result, or download it when the decoded data turns out to be a file rather than text.
Yes. The URL-safe alphabet uses - and _ where standard Base64 uses + and /, and usually drops the = padding. Both are accepted on decode without a setting to flip, and the padding is restored for you. Tick URL-safe when encoding to produce that variant.
18+ Free Tools
Explore all categories
From text processing to developer utilities, all free, all instant, no sign-up.