TextStyle4

HTML Entity Encoder

Escape or unescape HTML special characters and entities.

Example

Input
<b>Fish & Chips</b> – café
Output
&lt;b&gt;Fish &amp; Chips&lt;/b&gt; &#x2013; caf&#xE9;

How to use

  1. Type or paste your text into the box.
  2. Adjust the options if the tool has any – the result updates instantly.
  3. Press Copy result, or “Use result as input” to chain another step.

How it works

Encodes & < > " ' and optionally all non-ASCII characters as numeric entities. Decoding supports common named and numeric entities.

Frequently asked questions

Which characters must be escaped?

At minimum & < > and quotes inside attributes.

Is the text I type sent to a server?

No. Conversion runs in your browser and your text is not uploaded.

Related tools

URL Encoder / Decoder

Percent-encode or decode text for URLs.

Unicode Converter

Convert text to Unicode code points or \u escapes, and decode them back.

ASCII Converter

Convert text to decimal character codes and back.

Binary Text Converter

Convert text to binary (UTF-8) and decode binary to text.