<>essentialdevtools
Developer tools · Free browser tool

HTML entity converter

Escape HTML-sensitive characters for display as text, or decode HTML character entities.

How to use this tool

  1. Paste the text or HTML entity string.
  2. Choose Encode to escape characters, or Decode to turn entities into text.
  3. Copy the result for your document or code sample.

Example

<h1>Hello & welcome</h1> → &lt;h1&gt;Hello &amp; welcome&lt;/h1&gt;

What to know

Escaping text is not a complete HTML sanitizer. The safe handling of untrusted content depends on its final context, including attributes, scripts, and URLs.

Frequently asked questions

Will pasted scripts run?

The result is displayed in a text field, not inserted as executable markup.

What characters are escaped?

The encoder escapes ampersands, angle brackets, double quotes, and apostrophes.