Encode text to Base64 or decode Base64 back to readable text.
Encode any text, including emoji and accented characters, into Base64, or decode a Base64 string back into readable text. The tool handles UTF-8 correctly, accepts the URL-safe alphabet and missing padding when decoding, and updates the output as you type. It is useful for developers inspecting API payloads, config values, tokens and email attachments.
Base64 is an encoding that represents arbitrary bytes using 64 printable ASCII characters: A-Z, a-z, 0-9, plus and slash, with equals signs as padding. Every 3 input bytes become 4 output characters, so encoded data is about 33 percent larger. It is not encryption and offers no secrecy; it only makes binary or non-ASCII data safe to pass through text-only channels such as JSON, HTTP headers, XML and email. A URL-safe variant swaps plus and slash for hyphen and underscore, and usually drops the padding, so the result can sit inside URLs and file names.
No. Base64 is a reversible encoding with no key, so anyone can decode it instantly. Use real encryption such as AES, or a password hashing function, when you need confidentiality.
Base64 works in groups of 3 bytes. When the input length is not a multiple of 3, one or two equals signs pad the last group to 4 characters. The URL-safe option removes them.
Yes. Text is converted to UTF-8 bytes before encoding, and decoding reads the bytes as UTF-8, so characters outside ASCII round-trip correctly.
Every 3 bytes of input become 4 characters of output, so the result is roughly one third larger, plus any padding.
Yes. Decoding accepts hyphen and underscore and does not need padding. For tokens, the JWT Debugger tool also parses the header and payload for you.