How to use the Base64 Encode & Decode
- 1
Paste or type your input.
- 2
Choose the operation and options.
- 3
Copy the output or download it as a file.
UTF-8 and URL-safe Base64
Text is converted to UTF-8 bytes before encoding, so characters such as é, ü, 你好 and emoji round-trip correctly. URL-safe mode replaces + and / with - and _ and drops padding, the variant used in JWTs and URLs.
What Base64 is for
Base64 turns any bytes into 64 safe characters (A–Z, a–z, 0–9, + and /), so binary data can travel through systems built for text: email attachments, JSON fields, data URIs in CSS, HTTP Basic auth headers and JWTs. The cost is size: the encoded text is about 33% larger than the original, because every 3 bytes become 4 characters.
Common mistakes
Base64 is an encoding, not encryption: anyone can decode it, so never use it to hide passwords or keys. This decoder ignores spaces and line breaks, accepts URL-safe characters (- and _) and adds missing = padding, so if decoding still fails, the text contains characters that aren't Base64 or was cut off while copying. If it decodes to garbled accents, the original was encoded from a character set other than UTF-8.
Frequently asked questions
Is my data sent to a server?
No. Everything runs in your browser as you type. Nothing is uploaded or logged, so it is safe to paste API responses, tokens and private text.
Why does my Base64 string end with = or ==?
Base64 works on groups of 3 bytes. When the input length isn't a multiple of 3, the last group is padded and one or two = signs mark it. URL-safe Base64 often drops the padding, and this tool adds it back when decoding.
Can I decode a Base64 image here?
This tool decodes to text. For a data URI or Base64 image, use Base64 to Image, which shows the picture and lets you download it as a file.
Is Base64 encryption?
No. It's a reversible encoding with no key, so anyone can read Base64 data. Use real encryption for secrets.
Something not working, or missing a setting you need? Report a problem or request a tool.