Base64 Encoder & Decoder
Encode text to Base64 and decode it back, right in your browser. Handles Unicode correctly and never sends your data anywhere.
How to use the Base64 Encoder & Decoder
- Pick a direction. Choose whether you are encoding plain text or decoding Base64.
- Paste your input. The result updates as you type, so there is no button to press.
- Copy the result. Copy the output straight to your clipboard.
Frequently asked questions
- Is Base64 a form of encryption?
- No, and this matters. Base64 is an encoding, not a cipher: anyone can decode it instantly without a key. Never use it to hide passwords, tokens or personal data.
- Why does Base64 make my data larger?
- Base64 represents every three bytes as four printable characters, so the output is about 33 percent larger than the input. That is the cost of surviving channels that only accept text.
- Does this handle emoji and non-English text?
- Yes. The text is converted to UTF-8 bytes before encoding, which is what many naive Base64 tools get wrong. Accents, emoji and non-Latin scripts all round-trip correctly.
- Why does my Base64 string fail to decode?
- The usual causes are missing padding characters at the end, whitespace or line breaks pasted in from an email, or a URL-safe variant that uses dashes and underscores instead of plus and slash.
Related tools
- Developer Tools
HTML Entity Encoder
Encode text into HTML entities or decode entities back to characters. Escapes the five characters that break markup, safely in your browser.
- Developer Tools
JSON Formatter
Format, validate and minify JSON in your browser. Paste messy JSON, get readable output with a clear message when something is wrong.
- Developer Tools
JWT Decoder
Decode a JSON Web Token to inspect its header and payload, and check the expiry — all in your browser, with no token ever sent.
- Developer Tools
Password Generator
Generate strong random passwords in your browser. Choose the length and character types, then copy — nothing is ever sent over the network.
- Developer Tools
SHA Hash Generator
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes of any text, computed in your browser with the built-in Web Crypto API.
- Developer Tools
URL Encoder & Decoder
Encode text for safe use in URLs and decode percent-encoded strings back. Handles full URLs and individual query components.
Last updated