How to Decode a Base64 String (and Why It Is Not Encryption)
You have a string like aHR0cHM6Ly9leGFtcGxlLmNvbQ==— letters, digits, a couple of =signs on the end — and you need to know what it actually says. That is Base64, and decoding it takes one step.
But there is a second, more important point in this post: a lot of people assume Base64 hides or secures data. It does not. Let us decode it first, then clear that up for good.
How to decode a Base64 string
QuickWand's free Base64 Encode / Decode tool decodes locally in your browser, so the string — and whatever it contains — never leaves your device.
- Open the Base64 tool.
- Switch to Decode mode and paste your Base64 string into the input.
- Read the decoded result. If the original was text you will see it immediately; if it was a file, the tool can hand back the decoded bytes.
Decoding our example above gives https://example.com — that is all it was.
Why Base64 is encoding, not encryption
This is the part worth internalizing. Base64 is encoding: a fixed, public, reversible mapping between binary data and a 64-character alphabet (A–Z, a–z, 0–9, plus + and /). There is no key. There is no secret. The algorithm is published and built into every language and browser.
Encryption is fundamentally different: it uses a secret key to transform data so that onlysomeone with the key can reverse it. Without the key, the output is useless. Base64 has nothing like that — anyone who sees the string can decode it in milliseconds, exactly as you just did.
So, concretely:
- Base64 does not hide data.A “Base64 password” in a config file is plaintext to anyone who finds it.
- Base64 does not protect data in transit. Use TLS (HTTPS) for that.
- Base64 does not compress data. It actually grows the data by about 33%.
Its real job is transport: letting binary data ride safely through channels that only handle text — JSON fields, URLs, email bodies, data URLs, and HTTP headers. That is a genuinely useful job; it is just not a security one.
Where Base64 turns up
You will see it in JWT tokens (which are Base64url-encoded, not encrypted — their contents are readable by design), in Authorization: Basic headers (just user:passwordBase64-encoded — which is why Basic auth requires HTTPS), in email attachments, and in data URLs that inline images.
If you actually need to secure or verify data
When you need integrity or a fingerprint rather than reversibility, reach for a hash instead. A SHA-256 hash is one-way — you cannot turn it back into the original — which is the opposite of Base64. Our guide on the Hash Generator covers when to use SHA-256, and you can read more in how to generate an MD5 or SHA-256 hash. The rule of thumb: encode for transport, hash for verification, encrypt for secrecy — and never confuse the three.