UTILIX

Base64, URL & Entity Codec

Utilix Base64, URL & Entity Codec is a UTF-8 safe binary-to-text encoding pipeline that encodes and decodes Base64, URL percent-encoded strings, and HTML entities locally in the browser using TextEncoder and Uint8Array.

How to Encode and Decode UTF-8 Base64 Without Corrupting Unicode Characters?

Unlike legacy btoa() converters that crash on Unicode emojis or accented letters, Utilix Base64 Codec serializes strings into UTF-8 byte arrays via TextEncoder before encoding or decoding Base64, URL parameters, and HTML entities.

How to use Base64, URL & Entity Codec

  1. Enter Text or Encoded String: Paste plain text, Base64, URL query strings, or HTML entities.
  2. Select Codec Mode: Choose Base64 Encode/Decode, URL Encode/Decode, or HTML Entity Encode/Decode.
  3. Copy or Download Output: Copy the transformed string immediately with 1 click.

Frequently asked questions

Why does standard JavaScript btoa() fail on emojis or non-ASCII text?

Native btoa() only accepts Latin1 (ISO-8859-1) characters. Utilix converts strings to UTF-8 bytes via TextEncoder first so all Unicode text encodes cleanly.

Does the Base64 decoder strip "data:image/png;base64," prefixes automatically?

Yes, if you paste a full Data URI, Utilix automatically strips the MIME header before decoding.

What is the difference between URL encodeURI and encodeURIComponent?

Utilix uses RFC 3986 encodeURIComponent rules so reserved characters like &, =, ?, and / are safely escaped for query parameters.

Which characters are escaped in HTML Entity mode?

It escapes &, <, >, ", and ' to prevent XSS injection when embedding code snippets in HTML.

Is any encoded string logged or transmitted?

The encoding and decoding steps run locally in your browser; the input string is not sent to a processing API by this tool.

Related tools

UTILIX home