HTML Escape / Unescape

Escape HTML special characters or decode basic and numeric HTML entities.

Convert in your browser · No sign-up

Escapes &, <, >, double and single quotes. Decodes amp, lt, gt, quot, apos, nbsp and numeric references; unknown names stay unchanged. Output is plain text.

Up to 100,000 UTF-16 units per input · 0 / 100,000

How to use

  1. Paste your text or load the example.
  2. Choose the mode or options, then run the tool.
  3. Review the result, then copy or download the TXT file.

Example

<p>A&B</p> → &lt;p&gt;A&amp;B&lt;/p&gt;

Details and limitations

Escape HTML special characters or decode basic and numeric HTML entities.

Escapes &, <, >, double and single quotes. Decodes amp, lt, gt, quot, apos, nbsp and numeric references; unknown names stay unchanged. Output is plain text.

Text stays in your browser; it is not sent to a conversion server.

Format references

Tool page updated: