Developer tools

Base64 encoder / decoder

Convert readable text into Base64 and back, with explicit UTF-8 handling for accents and emoji.

Processed in your browser
Options
Up to 200,000 input characters

Ready when you are.

A practical example

Input or settings

Café 😀

Example result

Q2Fmw6kg8J+YgA==

When this helps

Useful for text payloads, small examples and checking Base64 fields. This tool handles text rather than uploading files or decoding binary images.

How it works and its limits

Encoding converts Unicode text to UTF-8 bytes before Base64. Standard mode uses + and / with = padding. URL-safe mode uses - and _ and omits padding in encoded output.

Decoding accepts optional correct padding and ignores ASCII spaces, tabs and line breaks. The selected alphabet must match; malformed padding, invalid characters and nonzero unused final bits are rejected.

Decoded bytes must form valid UTF-8. A binary file may be valid Base64 but will not necessarily decode as text. Base64 is an encoding, not encryption, and does not conceal a secret from someone who can read it.

Useful details

Can I encode emoji and accented letters?

Yes. UTF-8 conversion happens before encoding, and decoding is checked as UTF-8.

Can I paste a data: URL?

Paste only the Base64 payload, without the data URL prefix.

Is URL-safe Base64 a different encryption?

No. It changes two alphabet characters and typically omits padding; neither form is encryption.

More developer tools