HTML Encode and Decode

  1. Choose file
  2. Set options
  3. Get result

Encoding and decoding run in your browser tab.

Encode always turns & < > " into entities. Turn on non-ASCII to also write accented letters and symbols as &#…; codes.

Turn &, <, >, and " into HTML entities or decode &amp;, &#…;, and &#x…; back to text. Optionally encode accented letters and symbols as numeric entities. Runs in your tab; no upload.

How do I escape HTML in text?

  1. Open the Encode tab.
  2. Paste the raw text (for example a snippet with < and &).
  3. Read the escaped output and click Copy.

Encode always writes &amp;, &lt;, &gt;, and &quot; for the four markup characters. Turn on non-ASCII to also emit &#…; codes for accented letters.

How do I decode HTML entities?

  1. Switch to Decode.
  2. Paste text with entities.
  3. Read the plain output, or fix the alert if a sequence is incomplete or unknown.

Decode accepts decimal &#160; and hex &#xA0; forms, plus common named entities such as &nbsp; and &copy;.

HTML entities vs URL encode

HTML entities escape markup characters for HTML or XML. URL encode (percent-encoding) escapes query values for a URL. GustKit has both tools; pick the one that matches your output.

Frequently asked questions

Which characters does Encode always escape?

Encode always turns &, <, >, and " into &amp;, &lt;, &gt;, and &quot;. Apostrophes stay as-is unless you decode them from an entity.

What does Encode all non-ASCII do?

When checked, letters and symbols above U+007F become decimal numeric entities such as &#231; for ç. ASCII letters and numbers stay plain.

Which entities does Decode understand?

Decode resolves common named entities such as &amp; and &nbsp;, plus decimal &#…; and hex &#x…; numeric codes.

Does my text leave the browser?

No. Encoding and decoding run in your browser tab. GustKit does not send the text to a server.