/html-entity-encoder
Content Cleanup

HTML Entity Encoder & Decoder: Convert Special Characters Safely

Escape HTML special characters (< > & ' ") into safe entities, or decode HTML entities back to plain text. Supports named entities, decimal, and hex numeric refs.

Runs in your browser — your text is never uploaded or stored.
Result

How to Use

  1. 1.Pick Encode (text → entities) or Decode (entities → text).
  2. 2.Paste your input.
  3. 3.Copy the escaped or decoded result.
Advertisement

FAQ

Which entities does it support?

Basic mode escapes the five HTML-critical characters. Full mode escapes every non-ASCII character to numeric entities. Decoding supports named entities and numeric (&#123;, &#x1F;) references.

When should I use full-encode mode?

Use it when you need every non-ASCII character encoded — e.g. for XML feeds or environments that don't reliably handle UTF-8.

Is my text uploaded?

No — all encoding and decoding happens locally in your browser.

Related tools

More text utilities