Free tool

Base64 decode and encode

Decode Base64 to text or a picture, or encode text and files to Base64. It handles emoji and URL-safe Base64. Free, no account, nothing leaves your device.

A picture, PDF or any file up to 5 MB. It never leaves your device.

What to do

Options

Runs in your browser. Nothing you type is sent to Postfjord or saved.

A tool sends you a long string like SGVsbG8gd29ybGQ= where your caption or your logo should be. Paste it here and read what it says. Paste plain text, or drop a file, to get Base64 back.

How to use the Base64 decoder and encoder

  1. Paste Base64 or plain text in the first box. Or tap Or choose a file.
  2. The page picks the direction. Base64 is decoded, text is encoded. To choose yourself, tap Encode or Decode.
  3. Tap Copy result. A picture shows as a preview, and Save file keeps it.

Tap Use result as input to run the result back the other way. Open Options for URL-safe letters or lines of 76 characters.

Where Base64 comes from

Email and the web were made to carry text. A picture is bytes, and bytes can break on the way. Base64 turns any bytes into 64 safe letters: A to Z, a to z, 0 to 9, plus and slash. Three bytes become four letters, so the text is about a third bigger than the file.

Why it bites

You open an export from a tool and a field holds 4,000 letters. You copy a picture out of an HTML email and it is a data: link. A shared API key looks like gibberish and you need to check what is in it. Many online decoders also break on emoji, or choke on the dashes and underscores of URL-safe Base64. This one handles both.

What it means on social media

Instagram, TikTok, LinkedIn, YouTube, Pinterest, X and Facebook all want a real picture or video file, never Base64 text. If you paste Base64 into a caption it is just letters, and it eats your limit. An Instagram caption holds 2,200 characters, about 1,650 bytes of Base64. An X post holds 280, about 210 bytes. A small icon can fill that. When a tool gives you a picture as Base64, decode it here, save the file, and upload the file.

What it does and does not do

  • UTF-8. Text goes in as UTF-8, so emoji and any alphabet work.
  • Both alphabets. Standard (+ and /) and URL-safe (- and _) Base64 both decode. Spaces, line breaks and a missing = at the end are fine.
  • Auto mode. It decodes when your text looks like Base64 and the bytes make readable text, a picture or a PDF. Otherwise it encodes. A word like "test" is also valid Base64, so pick Encode if the guess is wrong.
  • Data links. A data:image/png;base64, link decodes to its file.
  • Files. Up to 5 MB. It shows the file as Base64 and as a full data: link.
  • Binary. If the bytes are not readable text, the page says so and lets you save them. It never prints junk.
  • Errors. It tells you which character is wrong, and where.
  • No secrecy. Base64 hides nothing. Anyone can decode it, so never use it for a password.
  • Everything runs in your browser. Your text and files are not sent to Postfjord or saved on a server.

FAQ

How do I decode Base64?

Paste the Base64 in the first box and the decoded text shows below it. If the Base64 holds a picture, you see it and can save it. If the page encodes instead, tap Decode.

Is Base64 encryption?

No. Base64 only changes how bytes are written. Anyone can turn it back, so it keeps nothing secret. Use real encryption for a password or a private file.

Why does my Base64 end with = signs?

The = signs fill the last group of four letters. One or two of them is normal. URL-safe Base64 often leaves them off, and this decoder adds them back.

What is URL-safe Base64?

It is Base64 with - and _ in place of + and /, so it can sit in a web address. Paste it as it is. To make some, tick URL-safe letters under Options before you encode.

Why does my decoded text look like gibberish?

The Base64 may hold a file, or text in an old encoding. This page reads text as UTF-8. If the bytes are not readable, it shows the size and lets you save them.

Is my text sent anywhere?

Your text and files never leave your device. The page keeps your text in this browser tab so a reload does not lose it, and closing the tab deletes it.

More free tools

All 101 tools

Write the caption once

In Postfjord you write the caption once, pick your channels and schedule it. Try it free.

Start free