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
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…
- 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…
- JSON Minify Paste JSON and get it back without a single wasted byte: no indentation, no line breaks, same d…
- JSON Validator Paste the file and get a straight answer: valid or not. If not, the message says what the parse…