HTML Escape Unescape

Convert HTML-sensitive characters into entities, or decode entities back into readable text in this browser.

Browser-local

Input

Paste text to escape or unescape HTML entities

Output

Escaped or unescaped HTML entity output

Choose Escape or Unescape to transform the HTML entities.

Escaped characters

Escape mode converts ampersands, angle brackets, quotes, and apostrophes for safer display inside HTML examples.

Entity validation

Unescape mode supports common named entities and numeric entities, and flags unknown named entities before output.

What this HTML Escape does

Use this HTML escape and unescape tool to convert characters like <, >, &, quotes, and apostrophes into HTML entities or back into readable text.

When developers use it

  • Escape HTML snippets for display in documentation, Markdown, or templates.
  • Decode entity-heavy text copied from source views, logs, or CMS fields.
  • Prepare safe examples without uploading snippets.

Privacy, input, and output

HTML entity conversion happens locally in browser memory.

Paste text and choose escape or unescape. The output panel shows the entity-encoded or decoded result.

Validation rules and limitations

  • Escaping text for display is not the same as sanitizing untrusted HTML for execution.
  • Unknown or malformed entities may remain unchanged.