Developer Tools  ›

HTML Entities Encoder/Decoder

Convert text into safe HTML entities (and back) so you can embed any content inside HTML without breaking it.

Private - runs in your browser No signup required Free forever

How to use HTML Entities Encoder/Decoder

  1. Paste your text.
  2. Click Encode to escape special characters, or Decode to read entities back.
  3. Copy the result.

Features

  • Encode & decode
  • Numeric and named entities
  • Browser-side

Why use it

  • Avoid XSS in templates
  • Embed code samples safely

Frequently asked questions

Which entities are encoded?

< > & " ' and any non-ASCII char. Decode handles named entities like &amp; and numeric &#xx;.