All tools

HTML Entity Encoder

Encode and decode HTML special characters.

About

Convert characters like <, >, &, and quotes to their HTML entity form (&lt;, &gt;, &amp;) and back. Also handles named entities (&copy;, &nbsp;) and numeric entities (&#169;).

How to use

  1. Paste text or entity-encoded HTML.
  2. Pick the direction.
  3. Copy the result.

FAQ

When do I need to encode HTML entities?+

Whenever raw text containing <, >, or & ends up in HTML. Otherwise the browser tries to parse it as markup.