quialo.

HTML Entity Encoder

Type or paste text above to encode it.

This tool converts special characters into HTML entities and back again. Encoding turns characters like the ampersand, less than, and quote marks into safe entities so they display as text instead of breaking your markup. Decoding reverses the process. Everything runs in your browser, so your text never leaves your device.

How to use

  1. Pick a direction: encode (text to entities) or decode (entities to text).
  2. Type or paste your content into the input box on the left.
  3. Read the converted result in the output box on the right.
  4. Press Copy to put the result on your clipboard, or Reset to start over.

Examples

  • Encode: <a href="x">Tom & Jerry's</a> becomes &lt;a href=&quot;x&quot;&gt;Tom &amp; Jerry&#39;s&lt;/a&gt;
  • Decode: price &euro;5 &amp; up becomes price &euro;5 & up (the unknown euro entity is left untouched)
  • Encode: 5 < 10 && 10 > 5 becomes 5 &lt; 10 &amp;&amp; 10 &gt; 5

FAQs

Which characters get encoded?
The five characters that matter in HTML markup: ampersand (&), less than (<), greater than (>), double quote ("), and single quote ('). Ordinary letters, numbers, and accented characters are left as is.
Does decoding handle numeric entities?
Yes. It decodes named entities like &amp;, plus decimal entities like &#60; and hexadecimal entities like &#x3C;. Any entity it does not recognize is left exactly as written so nothing is lost.
Why encode HTML entities at all?
Encoding lets you show characters such as < and & as literal text instead of letting the browser treat them as markup. It is also a basic step toward preventing broken pages and injected content.
Is my text uploaded anywhere?
No. The conversion happens entirely in your browser with client-side code. Nothing is sent to a server.
What happens to an unknown entity when I decode?
It stays unchanged. For example &notreal; passes through as written, so you never accidentally lose content the tool does not understand.

Related tools