BROWSE BY TASK · 6 TOOLS

Encoding Tools

Encode URL query values, escape HTML characters, inspect Base64 text, and prepare image data URIs for the correct destination context.

Choose encoding for the destination: a query value, displayed markup, encoded text or image data. These formats are not interchangeable and none of them provides encryption.

The destination decides the encoding

URL encoding, HTML escaping and Base64 each solve a problem in a different place. A query parameter value needs percent-encoding of reserved characters, while a whole URL should not be escaped blindly or its separators break. HTML entities belong in text that will be parsed as markup, not in a JSON body. Base64 represents bytes as text for transport; it adds no secrecy and increases size.

One layer per context

Encoding twice is a common failure: a value that is already percent-encoded gets its percent signs escaped again and arrives as literal text. Work from the original value, encode once for the destination, and decode to verify the round trip. A Base64 image data URI also has a size cost and a MIME type that must match the actual bytes; if the label says PNG and the payload is JPEG, some renderers will reject it.

Prepare URL values and displayed markup

Encode a parameter value rather than blindly escaping a whole URL. HTML entities serve a different output context.

Work with Base64 data

Text encoding and binary image embedding have different inputs. Choose the tool matching the bytes you need to represent.

A practical way to use these tools

  1. Identify where the output will be used.
  2. Select the matching encoder and avoid double encoding.
  3. Decode or inspect a non-sensitive example before integration.

Encoding is not encryption or sanitization. Decoding untrusted text does not make it safe HTML. The image URL option contacts the server; do not submit private or signed URLs.