Base64 Encode & Decode
Encode and decode Base64 in your browser. JWT segments, API payloads, data URLs—free tool, copy paste results, nothing uploaded.
About Base64 Encoder/Decoder
Base64 represents binary data as ASCII text using 64 safe characters. Developers encode strings for HTTP headers, JSON Web Tokens, email attachments, and config secrets during debugging.
How to Use Base64 Encoder/Decoder
Paste plain text to encode, or paste a Base64 string to decode. Copy the output into Postman, curl, or your codebase. Verify padding and charset (UTF-8) match your API expectations.
When to Use Base64 Encoder/Decoder
API debugging: Inspect Authorization headers and webhook payloads. Data URLs: Preview small image or font Base64 snippets. Teaching: Demonstrate binary-safe text transport in workshops.
Why Use This Base64 Encoder/Decoder?
Avoid typos from hand-encoding and see decode errors immediately when padding is wrong.
Unicode vs HTML formatting
Base64 is encoding, not encryption. Anyone can decode it. Do not treat Base64 as security—use proper encryption for secrets at rest.
Platform compatibility
Works offline in the browser for quick tests. Production apps should use vetted libraries; this tool is for learning, QA, and one-off conversions.
Examples
- Hello → SGVsbG8=
- eyJhbGciOiJIUzI1NiJ9 — JWT header segment (decode to inspect JSON)
- dGVzdA== — “test” encoded
Frequently asked questions
Is Base64 encryption?
No. It is reversible encoding. Never store passwords in Base64 alone.
Why does my decode fail?
Check for missing padding (=), URL-safe variants, or non-UTF-8 bytes in the source.
Can I encode files here?
This page focuses on text. For large files, use dedicated file Base64 tools or CLI base64.