Base64 Encode and Decode
Paste text to get Base64, or paste Base64 to get the text back. Cyrillic, Chinese and emoji all survive the trip — the string is read as UTF-8, not as bytes of one language.
- Free
- Files never leave your device
- No sign-up
- No file limit
How to use
- Pick the direction: encode or decode.
- Paste the text — the result appears as you type.
- For a token in a URL, turn on the URL-safe alphabet; to encode a file, press «Encode a file».
Good to know
Why Base64 exists at all
Some channels only carry plain text: email headers, JSON fields, URLs, configuration files. Base64 turns any bytes into 64 safe characters so they pass through untouched. The price is size — the result is about a third larger than the original.
Two alphabets, one standard
The classic alphabet uses + and /, which have their own meaning inside a URL. The URL-safe variant replaces them with - and _ and drops the padding, so a token stays intact in a link. Decoding here accepts both without asking.
Frequently asked questions
Is Base64 encryption?
No. It is a way of writing bytes as text, and anyone can decode it in a second. Never use it to hide a password.
Is my text sent anywhere?
No. Encoding and decoding happen in your browser — safe for tokens and private data.
Why does my Cyrillic break in other tools?
Because they call btoa on the raw string, and it only understands single-byte characters. Here the text is converted to UTF-8 first, so any alphabet works.
How large a file can I encode?
Up to 5 MB. Larger files make a string the browser struggles to display, not just to compute.
Related tools
- JSON Formatter and Validator Paste JSON and get it formatted, validated or minified. The data stays in your browser — nothin…
- JSON Beautifier Paste a wall of minified JSON and read it like a document. Indentation appears as you type, and…
- Word Counter Type or paste your text and the counters update instantly — words, characters, sentences, parag…
- Character Counter Type or paste your text and watch the character count update on every keystroke — with spaces a…
- CSV to JSON Paste a table, get JSON. The parser follows RFC 4180, so a cell like «Doe, John» stays one fiel…
- QR Code Generator Type a link or any text and the code appears as you type. Download it as a PNG for a screen or…
- Case Converter Paste text, pick a case, get the result. Nine ways of writing the same words: the four everyday…
- Fancy Text Generator Type a nickname and take the variant you like. Nothing is installed and nothing is uploaded: th…