Gezidao

HTML Entities Encoder

Escape or unescape HTML special characters safely.

Report an issue

Advertisement

AHow to use

  1. 01 Paste the text or HTML snippet.
  2. 02 Click Encode to escape it, or Decode to restore characters.
  3. 03 Copy the result.

QFAQ

When do I need to encode HTML? +

Whenever code should be displayed as text — tutorial snippets, comments, chat messages. Encoding stops <script> and other tags from being interpreted by the browser.

Which characters are encoded? +

The five that matter in HTML: < > & " and '. Decoding understands all named and numeric entities.

→Related tools