Check a Base64 text round trip with accents

Distinguish readable text, encoded bytes and encryption when exchanging Base64 data.

Digital Productivity2 min readPublished Last edited Automated editorial check:
On this page

BASE64 represents bytes with a smaller alphabet. It is useful when a field or protocol expects printable characters, but the result is readily reversible. Do not treat it as a privacy control or encode a password to make it safe to share.

Use a UTF-8 practice word

Enter café in Encode UTF-8 mode. The result is Y2Fmw6k=. Switch to Decode UTF-8 and paste that value. You should get café back. The accented letter uses more than one byte in UTF-8. A conversion that uses an unrelated single-byte encoding may show a different string or fail when decoded.

Check the decoded text against the source, including line endings if the destination cares about them. If you send the encoded data in a URL query, use a library that constructs the URL. Standard Base64 may contain a plus sign. Some query parsers treat a literal plus sign as a space rather than preserving it.

Recognize a format mismatch

Base64URL uses a related alphabet intended to avoid some URL punctuation. Other formats omit padding or insert newlines. Check what the receiving program expects before manually editing the encoded value. This tool accepts standard padded Base64 with ordinary whitespace ignored, and validates UTF-8 when decoding. Encoded image or archive data may decode into bytes that are not UTF-8 text.

Keep the original input when a system rejects a field. Verify whether it expects raw bytes, Base64 or Base64URL. Try a short representative fixture first, and inspect both the encoded string and the decoded result before moving real data.

Reading and practice

Related guides

Search ByeGA4