Base64 Encoder / Decoder
A fast online Base64 encoder and Base64 decoder. Convert text to Base64, decode Base64 to text, with full UTF-8 and URL-safe support — in your browser, no signup.
Use this Base64 encoder / decoder to convert text to Base64 or decode Base64 back to text. Handles UTF-8 (so emoji and international characters round-trip cleanly), URL-safe variants, and MIME line wrapping for email contexts.
Ideal for debugging API headers, inspecting JWT payloads, encoding strings for JSON transport, and preparing tokens for URLs. Paste any length — short phrase or long payload — and copy the result with one click.

How to encode or decode Base64
Three steps from input to copied result.
1. Pick mode
Switch between Encode and Decode with a single tab.
2. Paste input
Drop text or a Base64 string into the input box.
3. Copy output
One-click copy. URL-safe and line-wrapping toggles available.
Encoding examples
A quick look at how input → Base64 maps.
| Type | Input | Base64 |
|---|---|---|
| Plain text | Hello, world! | SGVsbG8sIHdvcmxkIQ== |
| Emoji / unicode | Namaste 🙏 | TmFtYXN0ZSDwn5mP |
| JSON payload | {"id":42,"ok":true} | eyJpZCI6NDIsIm9rIjp0cnVlfQ== |
Standard vs URL-safe Base64
Pick the variant that matches your destination.
Standard Base64 uses the alphabet A-Z a-z 0-9 + / and pads to multiples of 4 with =.
URL-safe Base64 replaces + with - and / with _, and often drops padding. Use it in URLs, cookies, filenames, and any place where + / could be mis-interpreted.
Typical reasons to use Base64
Debug an API token or header
JWTs, auth headers, and webhook payloads often ship as Base64. Decode to inspect the contents.
Encode binary for transport
Text-only channels (JSON, query strings, env vars) need Base64 to carry raw bytes.
Prepare data URIs
Convert small text blobs to data URIs that embed directly in HTML or CSS.
Inspect URL-safe tokens
Reset-password links and invites often include URL-safe Base64 payloads.
Common pitfalls
Confusing Base64 with encryption
Base64 is an encoding, not a cipher. Anyone with the string can decode it. Don’t use it to “hide” sensitive data.
Forgetting UTF-8
Naive Base64 on unicode strings can mangle characters. This tool handles UTF-8, but some libraries don’t — pair with a proper encoder on the other side.
Copying strings with line breaks
MIME-wrapped Base64 has line breaks every 76 chars. Most decoders handle it, but some strict parsers fail. Toggle wrapping off when pasting into code.
URL-safe vs standard
Standard Base64 uses + and /, URL-safe swaps them for - and _. Mismatched encoders / decoders will produce gibberish.
What this tool supports
| Feature | Supported | Notes |
|---|---|---|
| Encode text to Base64 | Yes | UTF-8 safe — handles emoji and international characters. |
| Decode Base64 to text | Yes | Accepts standard and URL-safe variants. |
| URL-safe Base64 | Yes | Swap + / for - _ and drop padding when needed. |
| Line wrapping control | Yes | Optional 76-column wrap for email / MIME outputs. |
| Copy to clipboard | Yes | One click to copy the result. |
| Large input support | Yes | Works for long payloads; runs entirely in your browser. |
| Account required | No | No signup, no install. |
Frequently Asked Questions
User reviews
No reviews yet. If you used the tool, you can share feedback on our feedback page.
Ready to encode or decode?
Paste any text or Base64 string, flip the mode, and copy the result in one click.

