US LA
0 0
:
0 0
:
0 0
US NY
0 0
:
0 0
:
0 0
FR PAR
0 0
:
0 0
:
0 0
RU MOW
0 0
:
0 0
:
0 0
TH BKK
0 0
:
0 0
:
0 0
AU SYD
0 0
:
0 0
:
0 0
โ€ฆ
</>

HTML Entities Encoder/Decoder

Encode and decode HTML entities easily. Free, fast and 100% private.

HTML TXT XML &xxx;
0 characters
๐Ÿ”’

Your data stays on your device. Nothing is sent to our servers.

Quick examples (click to test)

XSS Protection <script>alert('XSS')</script>
HTML Tags <p>Hello & goodbye ยฉ 2025</p>
Symbols Prix: 50โ‚ฌ โ€” Rรฉduction: 10%
Decoding &lt;div&gt;&amp;nbsp;&lt;/div&gt;

What is HTML entity encoding?

HTML entities are character sequences that represent special or reserved symbols in HTML. For example, the < character is encoded as &lt; to prevent it from being interpreted as an HTML tag. This mechanism is essential for web security (XSS prevention) and for correctly displaying special characters.

Features

โšก

Ultra fast

Instant conversion in your browser, no waiting time.

๐Ÿ”’

100% private

Your data never leaves your device. No server uploads.

๐Ÿ”„

Bidirectional

Encode text to HTML entities and decode entities to text.

๐ŸŽจ

Multiple formats

Supports named, decimal numeric, and hexadecimal entities.

How to use?

1

Choose mode

Select encode (text to HTML) or decode (HTML to text).

2

Enter your data

Type or paste your text in the input area.

3

Copy the result

Copy the result or download it as a text file.

Use cases

๐Ÿ›ก๏ธ

Web security

Protect your applications against XSS attacks by encoding user input.

๐Ÿ“

HTML code

Display HTML code as text in your web pages or tutorials.

๐ŸŒ

Special characters

Correctly display symbols like ยฉ, โ‚ฌ, โ„ข and other special characters.

โœ‰๏ธ

HTML email

Encode content for newsletters and marketing emails.

Reference table

Character Named entity Numeric Description
<&lt;&#60;Less than (opening tag)
>&gt;&#62;Greater than (closing tag)
&&amp;&#38;Ampersand
"&quot;&#34;Double quote
'&apos;&#39;Apostrophe
&nbsp;&#160;Non-breaking space
ยฉ&copy;&#169;Copyright
ยฎ&reg;&#174;Registered trademark
โ„ข&trade;&#8482;Trademark
โ‚ฌ&euro;&#8364;Euro symbol

Frequently asked questions

What's the difference between named and numeric entities?

Named entities use a readable name (e.g., &copy; for ยฉ) while numeric entities use the character's Unicode code (e.g., &#169;). Both are equivalent but named ones are more readable.

Why is HTML character encoding important?

Encoding prevents XSS (Cross-Site Scripting) attacks by preventing malicious code injection. Without encoding, an attacker could inject JavaScript through a form.

Do all browsers support HTML entities?

Yes, HTML entities are a standard supported by all modern browsers. Common named entities like &lt;, &gt;, &amp; are universally recognized.

What's the difference between < and <?

&#60; is decimal notation (base 10) and &#x3C; is hexadecimal notation (base 16). Both represent the same character (<). The hexadecimal form is sometimes preferred in programming.

Is my data sent anywhere?

No! All processing is done locally in your browser. Your data never leaves your device.