How to use the Base64 Encode & Decode
- Choose "Encode" or "Decode" and the standard or URL-safe format.
- Paste text or a Base64 string on the left.
- The result appears instantly; press "Copy" or "Download".
Examples
Encode text to Base64
Hello, World!
SGVsbG8sIFdvcmxkIQ==
Encode non-English text (UTF-8)
御宅道場
5b6h5a6F6YGT5aC0
Is Base64 encryption?
No. Base64 is an encoding that represents arbitrary bytes with 64 printable characters (A–Z, a–z, 0–9, +, /), so binary data can travel through text-only channels such as email, JSON, URLs and HTML. Anyone can decode it, so it does not protect passwords or secrets.
Encoded output is about 4/3 the size of the input; trailing = characters are padding.
Specs & key facts
| Standard | RFC 4648 (Base64 and Base64URL) |
|---|---|
| Text encoding | UTF-8 — any language and emoji |
| Formats | Standard Base64, URL-safe Base64URL (no padding) |
| Tolerant decoding | Ignores spaces and line breaks; accepts data: URIs |
| Processing | In your browser (nothing is uploaded) |
| Price | Free, no sign-up |
FAQ
Why does another tool give a different result for non-English text?
The text encoding differs. This tool uses UTF-8, the standard for the web and APIs; tools using UTF-16 or legacy encodings produce different output.
When should I use URL-safe Base64?
When the value goes into a URL, filename or JWT. Standard Base64 uses + and /, which have special meaning in URLs; URL-safe Base64 uses - and _ and drops the trailing =.
Why does decoding say "not valid UTF-8 text"?
The Base64 contains binary data such as an image or archive, not text, so it cannot be displayed as text.