Skip to content
Jellykit

Base64 Encoder & Decoder

Encode text to Base64 or decode it back as you type, with full Unicode support through UTF-8 and the URL-safe alphabet understood.

  • Runs on your device
Loading tool

About Base64 Encoder & Decoder

Convert text to Base64 and back again as you type. Encoding handles any Unicode text, including emoji and non-Latin scripts, by going through UTF-8 first. Decoding is forgiving: it accepts the URL-safe alphabet, missing padding and stray line breaks.

If the decoded bytes turn out not to be text, such as an image or a key, they are shown as hexadecimal instead of a garbled string.

How it works

  1. To encode, your text is first turned into UTF-8 bytes, then every three bytes become four characters from the Base64 alphabet.
  2. To decode, whitespace is ignored, URL-safe characters are mapped back to the standard alphabet and padding is restored before the bytes are read as UTF-8 text.
  3. The swap button moves the result into the input and flips the direction, which makes round-trip checks quick.

Questions

Is Base64 a form of encryption?

No. It is an encoding that anyone can reverse instantly. It makes binary data safe to place in text, but it hides nothing.

What is the URL-safe variant?

It replaces + with - and / with _ and usually drops the = padding, so the result can sit in a URL or file name without escaping. JSON Web Tokens use it.

Why did my decoded text come out as hexadecimal?

The Base64 you pasted decodes to bytes that are not valid UTF-8 text, which usually means it represents a file or a key rather than a message. The hexadecimal view shows those bytes faithfully.

How much text can it handle?

Up to 5 MB of text at a time, which is far more than a token, a header or a configuration value needs. Very long input is still converted on your device, so the only cost is a moment of work for your browser.

Can I turn an image or file into Base64?

This tool works on text. To encode a picture as a data URI for CSS or HTML, use Image to Base64; to turn Base64 back into a picture, use Base64 to Image Decoder. Both also run entirely in your browser.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.