Base64 decode

Paste a Base64 string and read the original text at once. It understands standard and URL-safe Base64 and tells you when the input is not valid.

  • Free
  • No sign-up
  • Runs in your browser
base64-decode

100% private — everything is converted in your browser and nothing is uploaded.

Files and images

Encode a file to Base64

100% private — everything is converted in your browser and nothing is uploaded.

How it works

Paste the Base64

Paste the string, with or without the = padding and with or without line breaks.

Read the text

The decoded text appears instantly in the output box.

Copy it

Copy the result, or decode a file instead with the file section below.

How to decode Base64

To decode Base64, paste the string into the input box with Base64 to text selected. The original text appears in the output box immediately. Standard and URL-safe alphabets are accepted, missing padding is tolerated and the bytes are read as UTF-8. Everything runs in your browser, so the string you paste is never uploaded.

What decoding does

Base64 groups the original bytes in threes and writes each group as four characters from a 64-character alphabet. Decoding reverses that: each character is turned back into 6 bits, the bits are regrouped into bytes and, if the bytes are text, they are read as UTF-8. For example, SGVsbG8= decodes to Hello.

Decoding examples

Base64 examples
TextBase64Bytes
AQQ==1
HiSGk=2
ManTWFu3
HelloSGVsbG8=5
Hello, World!SGVsbG8sIFdvcmxkIQ==13
Grüße, Welt!R3LDvMOfZSwgV2VsdCE=14
€4oKs3

Why decoding fails

  • Characters outside the alphabet. Only A-Z, a-z, 0-9, + and / (or - and _ in the URL-safe form) are valid, plus the = padding.
  • Wrong length. A valid Base64 string, once padded, has a length that is a multiple of four.
  • The result is not text. If the Base64 holds an image or a PDF, the output is unreadable symbols; use the file section to download it instead.
  • Copy errors. A missing character or an extra space breaks the tail of the string.

Recognising what is inside

You can often guess a file type from the first characters of its Base64. Text that begins with eyJ is usually JSON (a JWT part), and the table below shows the start of common file types.

Common file signatures in Base64

How Base64 files start
File typeBase64 starts with
JPEG/9j/
PNGiVBORw0KGgo=
GIFR0lGODlh
WebPUklGRg==
PDFJVBERi0=
ZIPUEsDBA==

Private by design

The conversion runs in your browser. What you type, paste or drop is never uploaded, which matters when the text holds tokens, personal data or internal files.

Frequently asked questions

Can I decode a JWT with this?
You can decode each of the three dot-separated parts of a JWT to read the header and payload, since they use URL-safe Base64. The signature part is binary and is not meant to be read.
Is decoding Base64 the same as decrypting?
No. Base64 is an encoding, not encryption, so there is no key. Anyone can decode it, which is why it must not be used to hide secrets.
Why do I get strange characters?
The data is probably not text, for example an image, a compressed file or text in another encoding. Use the file section below to decode it to a downloadable file.
Is this converter free?
Yes. There is no sign-up and no limit, and it runs in your browser, so nothing you type is sent to a server.
Does it work on a phone?
Yes. It works in any modern mobile browser, and the result updates as you type.