Toolbox / HTML entities Runs in your browser中文
Web

HTML entities

Escape HTML-sensitive text and decode named or numeric entities.

Ctrl / ⌘ + Enter Run

Ready when you are

01

Add your contentPaste text or try a sample

02

Choose an actionClear options. Predictable results.

03

Take it with youCopy, download and carry on

Less switching. More focus.Functional build · Validation in progress

Using this tool

Escape HTML-sensitive characters or decode named and numeric entities.

Actions: Escape · Unescape

Example

Choose Escape to encode the tag delimiters and ampersand.

Example action and settings

Action: Escape

Input / action

<b>A & B</b>

Result / expected behavior

&lt;b&gt;A &amp; B&lt;/b&gt;

Scope and limitations

  • Entity escaping is not HTML sanitization or a substitute for context-specific attribute, URL or script handling.

Common mistakes

  • Escaping twice escapes ampersands again; check whether the input is already escaped.

Related tools

Safe HTML preview

Privacy and browser support

Input is processed in this browser. Do not use real keys or active sensitive credentials as demonstration data. Device features require browser support and your permission.