Advertisement

Encode or decode HTML entities (named and numeric) in your browser, with an option to escape every non-ASCII character. Free and private.

Everything runs in your browser — nothing is uploaded.

Input
0 chars
Output
0 chars

About HTML Entity Encoder & Decoder

The HTML entity encoder and decoder converts between plain text and HTML entities in both directions. Encoding turns characters like <, >, & and quotes into safe entities so markup can be displayed as text instead of being rendered; decoding turns strings such as &eacute; or &#233; back into readable characters.

Two options control the output: choose numeric entities (&#233;) instead of named ones (&eacute;), and optionally encode every non-ASCII character — useful when a file must survive transport through systems that mangle UTF-8. Live character counts and a "use as input" swap button make round-tripping quick.

The converter runs entirely in your browser with nothing uploaded, so it is safe for snippets from private codebases. It is a practical companion when embedding code samples in blog posts, escaping user content examples, or debugging double-encoded text.

How to use HTML Entity Encoder & Decoder

  1. Choose the direction: Encode to convert characters into entities, or Decode to convert entities back to text.
  2. Paste your text or HTML into the input pane, or load the sample.
  3. Toggle "Numeric entities" for &#...; style output, and "Encode all non-ASCII" to escape every accented or non-Latin character.
  4. Read the result in the output pane, using "Use as input" to chain another pass.
  5. Copy the converted text to your clipboard.

Frequently asked questions

Whenever markup should display as text rather than render — code samples in articles, HTML inside attribute values, or user-supplied content shown verbatim. Encoding <, >, & and quotes prevents the browser from interpreting them.

Named entities like &eacute; are human-readable; numeric ones like &#233; reference the code point directly and work even where a named entity is not defined. The numeric toggle switches the output style.

Yes — run Decode once per encoding layer. Each pass unwraps one level, and the swap button feeds the output straight back in for the next pass.

Yes. Encoding and decoding happen in your browser; nothing is uploaded, so private code snippets stay on your device.

Yes — completely free with no length limits.


Popular searches
html entity encode html entity decode html entities converter encode html special characters decode html entities html escape tool
Need help?
Found an issue with this tool? Let our team know.
Report an issue

Add this free tool to your own website — copy and paste the code below.