HTML entity conversion runs locally in your browser. Nothing is uploaded.

HTML Entity Encoder / Decoder

Escape HTML-sensitive characters, optionally encode non-ASCII characters, or decode named and numeric HTML entities back to text.

HTML entity conversion runs locally in your browser. Nothing is uploaded.

Encode or decode HTML entities

Conversion direction

HTML entity conversion for snippets and content

Use this HTML entity encoder and decoder when preparing snippets, CMS content, documentation examples, comments, escaped markup, or text copied from web pages.

The tool always escapes ampersands, angle brackets, quotes, and apostrophes when encoding. Decoding supports common named entities plus decimal and hexadecimal numeric entities.

How to use this tool

  1. Choose encode or decode

    Select Encode to escape text for HTML, or Decode to turn entities back into readable characters.

  2. Adjust non-ASCII encoding

    In encode mode, turn on non-ASCII encoding when you want characters outside basic ASCII as numeric entities.

  3. Copy the output

    Review the live result and copy the encoded or decoded text.

FAQ

Does this HTML entity tool upload my text?

No. Encoding and decoding happen locally in your browser.

Which characters are always encoded?

Ampersand, less-than, greater-than, double quote, and apostrophe are always escaped in encode mode.

Can it decode numeric entities?

Yes. It decodes decimal entities like © and hexadecimal entities like ©.

What does the non-ASCII option do?

It converts characters outside basic ASCII into numeric entities, which can be useful for highly escaped HTML snippets.