Base64 Decode Online
Decode Base64-encoded strings back to their original text instantly. Convert any Base64 data to readable plain text or binary content with ease.
Import from File
Drag & drop a file here
or
Supports .txt, .csv, .log, .json and other text files
All decoding happens locally in your browser. No data is sent to any server. Your text remains completely private.
What It Does
Base64 is a way of representing any data — text, JSON, images, whole files — using just 64 plain ASCII characters (A-Z, a-z, 0-9, + and /). It exists so that binary data can travel safely through systems that only expect text, such as email, URLs, JSON payloads and HTTP headers. A Base64 string looks like a meaningless block of letters and numbers, but it is fully reversible: every encoded string maps back to exactly one original. This tool takes that encoded block and restores the readable original. One thing worth saying up front: Base64 is encoding, not encryption. Anyone can decode it — that is the whole point — so it is never a way to hide or protect data.
When to Use It
- An API or webhook returned a Base64 field and you need to see the real value it carries before you can debug the response.
- A configuration file, JWT payload or environment variable stores data in Base64 and you want to read what is actually inside it.
- You received a data URI (for example an inline image or embedded file) and need to recover the original content.
- An email header, SAML assertion or token looks like gibberish and you suspect it is just Base64 hiding plain text underneath.
Worked Examples
SGVsbG8sIFdvcmxkIQ==
A normal, valid token. It decodes to the plain text "Hello, World!". The trailing == is padding that makes the length a multiple of four — remove it and the string becomes invalid.
eyJ1c2VyIjoiamFuZV9kb2UiLCJyb2xlIjoiYWRtaW4iLCJhY3RpdmUiOnRydWV9
A Base64-encoded JSON object — the shape you constantly see inside JWT payloads and API responses. The decoder detects that the output is valid JSON and pretty-prints it so the claims are easy to read.
aHR0cHM6Ly93ZWJ0b29sd29ybGQuY29tL2Jhc2U2NGRlY29kZT9yZWY9ZG9jcyZ2PTI=
Base64 is also used to pack URLs into tracking parameters and redirects. This one decodes straight back to a full https:// link, which the tool recognises as a URL.
Features
How to Use
1. Paste or type a Base64-encoded string in the input area. 2. The decoded result appears instantly below, along with its detected type and size. 3. Alternatively, drag and drop or upload a text file containing Base64 data. 4. Click Copy to copy the decoded output to your clipboard. 5. Click Clear to reset both input and output fields.
Common Mistakes
- Treating Base64 as encryption. It hides nothing — anyone can decode it in seconds. Never put passwords, keys or personal data into a Base64 string and assume it is protected.
- Dropping or mangling the padding. The = characters at the end keep the length a multiple of four. Copy-pasting that trims them off is the most common cause of an "invalid Base64" error.
- Confusing standard Base64 with URL-safe Base64. URL-safe variants replace + and / with - and _. If a string contains - or _, it may need converting before standard decoding.
- Forgetting that decoded binary is not text. Decoding an image or compressed file produces raw bytes, not readable characters — that garbled output is expected, not a failure.