Skip to main content

HTML entities

Escape HTML and decode common or numeric entities.

0 characters5M limit
0 characters
Entity escaping is not a replacement for context-aware HTML sanitization. The decoded result is never rendered as HTML here.

About HTML entities

Represent characters that have special meaning in HTML or convert encoded references back to text. Escaping is useful when literal text must be shown rather than interpreted as markup.

Steps, example, and limitations

How to use it

  1. Choose encode or decode.
  2. Paste the text and run the transformation.
  3. Review and copy the result for the intended context.

Example

Input

<strong>Hi & bye</strong>

Result

&lt;strong&gt;Hi &amp; bye&lt;/strong&gt;

Things to know

  • HTML text escaping is not a universal sanitizer for scripts, styles, URLs, or every attribute context.
  • The decoder supports its documented named entities and numeric references, not an arbitrary HTML document parser.

Navigation

Find a tool

Favorites, recent, and quick access

Image compressorReduce image file size with adjustable quality.
JSON formatterFormat, validate, and minify JSON data.
Merge PDFCombine multiple PDF files into one document.
Password generatorGenerate random passwords with configurable character sets.

Preferences

These preferences are saved only in this browser.

Tool input stays in memory and is cleared when you leave the page. Downloaded files are managed by your browser. AI model caches, when used, are separate from these preferences.