HTML entity encoder & decoder

Encode special characters as HTML entities or turn entities back into text, with a syntax preview.

Ready to useIn your browser · no account

Encodes &, <, > and quotes. Decoding turns semicolon-terminated entities into text. The result is not rendered or executed as HTML.

How to use

  1. Paste text containing special characters or HTML entities.
  2. Under Operation, choose Encode entities to create entities or Decode entities to recover the characters; click Convert entities.
  3. Review the syntax-highlighted preview and copy the result into the appropriate context.

How it works

Accepts up to 100,000 characters; decoding requires semicolon-terminated entities. Entity encoding does not replace HTML sanitization, and output is displayed as text without executing code.

An example

“<strong>Hello</strong>” can be represented as “&lt;strong&gt;Hello&lt;/strong&gt;” to show the tags as text.

Common questions

Why use &lt; instead of < in HTML text?

The entity represents the less-than sign as content, preventing it from being interpreted as the start of a tag in that text context.

Does decoding entities render a page?

No. The tool displays the resulting text. Tags and scripts are treated as text in the interface.