Base64 Encode / Decode
Base64 conversion.
ToolHub Pro — Remove ads and unlock one-click file export on text-output tools below (image tool keeps its own download).
Unlock Pro on this tool
Batch encode/decode (per line) · One-click export download
You may also need
About
Encode or decode Base64 for quick debugging and safe transport of text and binary-as-text. Common uses include HTTP Basic auth, JWT segments, data URIs, and API parameters. Runs locally in your browser.
Use cases
- Decode an Authorization header value to verify username/password formatting.
- Encode JSON/text into Base64 for an API parameter or test fixture.
- Inspect data URI payloads by decoding the Base64 part.
Common pitfalls
- Base64 is not encryption. Don’t share secrets assuming it’s “hidden”.
- Some systems omit padding (=) or insert line breaks; remove whitespace and retry decoding.
- JWT uses Base64URL, not standard Base64—use the Base64URL tool for JWT segments.
Examples
Input
hello
Output
aGVsbG8=
FAQ
Why does Base64 decode fail?
The input may include invalid characters, missing padding, or hidden whitespace/newlines. Remove spaces/newlines and try again.
Is UTF‑8 supported?
Yes. Text encoding/decoding uses UTF‑8.
Base64 vs Base64URL?
Base64URL uses URL-safe characters (- and _) and often omits padding. Use the Base64URL tool for JWT-like strings.
Is Base64 encryption?
No. Base64 is reversible encoding, not encryption.
Limitations
- Decoding expects valid Base64; hidden whitespace/newlines can break decoding.
- For binary files, prefer dedicated file-based tools; this tool focuses on text workflows.
Recommended
Affiliate slots. Configure real links via environment variables.
No recommendations configured.