Base64 encoder and decoder
Encode text or files to Base64, or decode Base64 back to text. Handles emoji and every language, and the URL-safe variant.
Encode a file
Images, fonts, PDFs, anything. The file is read on your device and never uploaded.
How Base64 works
Base64 reads data three bytes at a time and writes them as four characters of 6 bits each, from 64 symbols. The result is about a third larger than the original. Text is first turned into bytes as UTF-8, so “é” becomes two bytes and an emoji four.
Questions people ask
What is Base64 used for?
Base64 turns any bytes into letters, digits and a few symbols, so binary data can travel through systems built for text: email attachments, data URLs, JSON fields, HTTP headers and JWTs.
What is URL-safe Base64?
Standard Base64 uses + and /, which mean something in URLs. The URL-safe variant uses - and _ instead and usually drops the = padding. The decoder accepts both.
Is Base64 encryption?
No. Anyone can decode it. Use it to transport data, never to protect it.