Skip to content
FileTinker

HTML entity encoder & decoder

Paste text to escape the characters that have special meaning in HTML, or paste encoded markup to decode the entities back. It handles named and numeric entities and runs entirely in your browser.

Result appears here

Encode or decode

Open the tool in the mode you need — each has its own page:

How to encode or decode HTML entities

  1. Choose Encode (text → entities) or Decode (entities → text).
  2. Paste your text; the result updates as you type.
  3. Copy the result — turn on "encode all non-ASCII" if you need it.

About HTML entities

Some characters cannot appear literally in HTML: an ampersand starts an entity, and angle brackets open and close tags. Replacing them with entities — &, <, > — lets the text display as written instead of breaking the markup. Quotes are escaped too when text goes inside an attribute.

Encoding here covers the reserved characters by default, with an option to escape every non-ASCII character as a numeric entity for maximum portability. Decoding uses the browser's parser, so it understands the whole named-entity set. It all runs locally — instant, private and free.

Frequently asked questions

What are HTML entities?

HTML entities are codes like &amp;, &lt; and &#169; that represent characters which are reserved in HTML (such as &, < and >) or hard to type, so they display correctly instead of being interpreted as markup.

Which characters does encoding escape?

By default it escapes the five reserved characters: & < > " and the apostrophe. Turn on "encode all non-ASCII" to also convert accented letters, symbols and emoji to numeric entities.

Does decoding support named entities?

Yes. Decoding uses the browser's own HTML parser, so the full set of named entities (like &copy; and &nbsp;) and numeric entities (&#169; or &#xA9;) are all supported.

Is my text uploaded?

No. Encoding and decoding happen entirely in your browser, so whatever you paste never leaves your device.