126+ free tools that run in your browser — no uploads, no sign-up

HTML Entities Encoder / Decoder

Convert special characters to HTML entities and back.

HTML uses characters like < and & for its own syntax, so to show them literally in a page they must be written as entities such as &lt; and &amp;.

About HTML Entities Encoder / Decoder

Encode characters like <, >, & and quotes as HTML entities so they display safely in a web page, optionally converting every non-ASCII character to a numeric entity, or decode named and numeric entities back to plain text.

HTML uses characters like < and & for its own syntax, so to show them literally in a page they must be written as entities such as &lt; and &amp;. This tool encodes special characters into entities and decodes entities back into plain text.

How to use HTML Entities Encoder / Decoder

  1. Choose Encode or Decode.
  2. Paste your text or HTML.
  3. Optionally encode every non-ASCII character as a numeric entity.
  4. Copy or download the result.

Key features

  • Encodes & < > and quotes.
  • Optional numeric entities for accents, symbols and emoji.
  • Decodes named and numeric entities such as &copy; and &#169;.

Common use cases

  • Showing code samples safely in web pages.
  • Preparing text for HTML emails and templates.
  • Cleaning up text that arrived with entities in it.

Frequently asked questions

Related tools

More Developer tools