// encode text → base64 or decode base64 → text · real-time conversion
This free Base64 encoder and decoder converts plain text to Base64 and back in real time. Base64 encodes binary or text data using 64 printable ASCII characters (A-Z, a-z, 0-9, +, /), making it safe to embed in places that only support plain text — HTTP headers, JSON payloads, email attachments, and data URIs.
Switch between Encode and Decode mode and see live character counts and size change. All conversion happens locally using your browser's built-in btoa() / atob() functions — nothing is uploaded anywhere.
A-Z, a-z, 0-9, +, /) plus = for padding. It doesn't compress or encrypt data — it re-encodes it into a format that's safe to transmit through systems that only handle plain ASCII text, like email or URLs.+ and / are two of the 64 symbols used to represent 6-bit values, alongside A-Z, a-z, and 0-9. The = character is padding added at the end when the input length isn't a multiple of 3 bytes, so the output length is always a multiple of 4.+ and /, both of which have special meaning in URLs. URL-safe Base64 (used in JWTs, for example) replaces them with - and _ and often omits the = padding, so the encoded string can be used directly inside a URL or filename without escaping.username:password for Basic Auth), plain text input works perfectly.