Base64 encoder and decoder
Encode text to Base64 or decode it back, entirely in your browser.
How it works
Base64 represents binary data using 64 printable ASCII characters, so it can travel through systems that only handle text — email attachments, data URIs, JSON payloads, HTTP headers.
It works by taking three bytes at a time (24 bits) and re-splitting them into four 6-bit groups, each mapped to a character from A–Z, a–z, 0–9, + and /. Because three bytes become four characters, Base64 data is always about 33% larger than the original. When the input length is not a multiple of three, the output is padded with one or two = signs.
Base64 is an encoding, not encryption. It provides no security whatsoever — anyone can decode it instantly, as this page demonstrates. Encoding a password or key in Base64 hides it from casual reading and from nothing else.
This tool runs entirely in your browser. Nothing you enter is sent to a server, logged or stored, and the page keeps working with the network disconnected.
Common questions
- Is Base64 encryption?
- No. It is a reversible encoding with no key and no secret. Anyone can decode it, so it provides no security at all.
- Why does Base64 make files bigger?
- Every three bytes of input become four characters of output, so the result is roughly 33% larger, plus padding.
- What do the equals signs at the end mean?
- Padding. Base64 works in three-byte blocks, so when the input does not divide evenly, one or two = characters mark how many bytes were missing from the final block.
Related pages
- Word and character counter Words, characters, sentences, paragraphs and reading time, counted as you type.
- Typing speed test Measure words per minute and accuracy on a one, two or five minute test.
- Remove duplicate lines Strip repeated lines from a list, keeping the first occurrence of each.
- Sort lines alphabetically Sort a list of lines A–Z, Z–A, by length, or numerically.
- JSON formatter and validator Pretty-print, minify and validate JSON, with the exact position of any error.
- Text compare Compare two blocks of text and see which lines were added, removed or changed.
- Regex tester Test a regular expression against sample text, with matches and capture groups shown.
- Case converter Convert text between upper, lower, title, sentence, camel, snake, kebab and other cases.
- Remove empty lines Delete blank lines from a block of text, optionally collapsing runs to one.
- Find and replace Replace every occurrence of a string in pasted text, with optional regex.