Skip to content
  1. ConvertSoon
  2. Text tools
  3. Base64

Base64 decode and encode

Decode Base64 to readable text or encode text to Base64 in one click. It is free, handles UTF-8 and never sends your text anywhere.

Runs in your browser Updates as you type Free, no signup

How to use the Base64 decode and encode

  1. Choose the direction

    Pick Encode or Decode above the boxes.

  2. Type or paste your text

    The result appears on the right as you type. Nothing is uploaded.

  3. Copy the result

    Press Copy result, or Save to download it as a .txt file.

Examples

Real results from this tool.

You typeYou get
Hello, world!SGVsbG8sIHdvcmxkIQ==
SGkg8J+Riw== (decode)Hi 👋

Base64 decode

Choose Decode and paste the Base64 string. Line breaks and spaces are ignored, and both standard (+ /) and URL-safe (- _) alphabets are accepted. The bytes are read as UTF-8 text. If the Base64 holds an image or a file rather than text, the result will look like random symbols; that is expected.

Base64 encode

Choose Encode and type. Base64 turns any bytes into 64 safe characters (A to Z, a to z, 0 to 9, + and /), with = as padding, so data can pass through email, JSON, URLs and config files that only accept plain text. It grows the size by about a third.

Base64 is an encoding, not encryption: anyone can decode it. Do not use it to hide passwords or secrets.

Where you see Base64

Email attachments, data: URLs that embed small images in web pages, JSON web tokens and API keys in configuration files all use Base64. If you are debugging, decode it here to see what is inside.

Base64 and privacy

Decoding happens in your browser, so tokens and configuration values you paste are not sent to a server. Still, treat decoded secrets with care and do not share them.

Related tools

More codes and ciphers and similar tools, all free.

Questions about the Base64 decode and encode

No. It is a way to write data with safe characters, and anyone can decode it. Use real encryption for secrets.

Base64 works in groups of 3 bytes. When the data does not divide evenly, = fills the last group.

The page decodes Base64 into text. An image or file in Base64 will show as unreadable symbols, which means the data is binary, not text.

Base64 uses 4 characters for every 3 bytes, so the result is about a third longer than the original.

No. The conversion runs in your browser, so the text never leaves your device and works offline once the page has loaded.