Base64 Encoder / Decoder
Switch between Encode and Decode mode, then paste your text. The tool converts plain text to Base64 encoding or decodes Base64 strings back to readable text. It handles full UTF-8 including accented characters, emojis, and international alphabets. No data is sent to any server — everything happens in your browser.
Related Tools
[7 suggestions]URL Encoder / Decoder
Encode URI components or decode percent-encoded URLs safely and reliably.
Developer & WebJWT Decoder
Decode the header and payload of a JSON Web Token and see its expiry. Reads the token without checking the signature.
Developer & WebUUID Generator
Generate cryptographically random UUID v4 identifiers instantly, one or in bulk.
Developer & WebJSON Formatter
Validate, pretty-print, and minify JSON with clear error reporting for invalid input.
Developer & WebText to Binary Translator
Convert text to binary, hex, decimal, or octal and decode it back, using UTF-8 bytes.
Developer & WebText to Hex Converter
Convert text to hexadecimal bytes and hex back to text, in UTF-8, UTF-16 or Latin-1, with your choice of separator and prefix.
Format ConversionImage to Base64 Converter
Turn an image into a Base64 data URI with ready-to-paste HTML, CSS and Markdown, or decode a data URI or Base64 text back into an image file.
Developer & WebGuides for the Base64 Encoder / Decoder
- Hex to ASCII: How to Convert Hex to Text by Hand, in Code and With a Tool
Hex to ASCII step by step: split the hex into bytes, read each as a number and look it up. Examples, line endings and what bytes above 7F mean. (November 21, 2026)
- How to Convert Text to Hex: UTF-8, UTF-16 and Latin-1
Learn how to convert text to hex: UTF-8, UTF-16 and Latin-1 bytes, why é takes two bytes, how to read hex back and what errors mean. Tested on 50,000 cases. (November 18, 2026)
- How to Decode a JWT: Header, Payload, Claims and Expiry
How to decode a JWT by hand and in code: the three parts, claims such as exp and iat, why decoding is not verifying, and a free private decoder. (October 19, 2026)
- URL Encoding Special Characters: Chart, %20 vs + and What to Encode
URL encoding special characters made clear: the full chart of reserved characters, %20 versus +, UTF-8 for accents and emoji, and how to avoid double encoding. (October 14, 2026)
About the Base64 Encoder / Decoder
Base64 is a binary-to-text encoding scheme that represents binary data as a string of printable ASCII characters. It is used extensively in web development: embedding small images as data URIs in CSS, transmitting binary payloads in JSON APIs, encoding email attachments (MIME), and storing credentials in HTTP Basic Authentication headers. This tool uses the browser's native btoa() and atob() functions, wrapped with a TextEncoder/TextDecoder pipeline to support full UTF-8 — without this pipeline, characters outside the Latin-1 range (accented letters, CJK characters, emojis) would cause encoding errors. The encoded output is approximately 33% larger than the original input because three bytes of binary data are represented as four Base64 characters. Invalid Base64 input in decode mode triggers a clear error message rather than producing corrupted output.
Does this tool support UTF-8 and international characters?▾
Yes — the encoder properly handles complete UTF-8 character encoding, including accented letters (é, ñ), CJK characters, and emojis. They are encoded correctly without truncation or corruption.
Is my data secure when using this tool?▾
Completely — all encoding and decoding happens in your browser using JavaScript's built-in btoa/atob functions. No text or encoded data is transmitted over the network.
What happens if I paste invalid Base64 in decode mode?▾
The tool will display an error message ("Invalid Base64 input") instead of garbled output. You can fix the input and try again.