</> HTML Entity Encoder / Decoder

Encode special characters to HTML entities or decode them back. 100% browser-based — your text never leaves your device.

Input

0 chars

Output

0 chars Copied!

Common HTML Entities

Character Named Entity Numeric (Dec) Description

How to Use

Features

Use Cases

FAQ

What are HTML entities?
HTML entities are codes that represent characters with special meaning in HTML. They start with & and end with ;. For example, &lt; represents <, &amp; represents &, and &copy; represents ©.
When do I need to encode HTML entities?
Always encode < > & " ' when displaying user-generated content in HTML to prevent XSS attacks. Also encode when embedding HTML code examples in web pages.
What is the difference between named and numeric entities?
Named entities use descriptive names like &amp; or &copy;. Numeric entities use the Unicode code point, either decimal (&#169;) or hex (&#xA9;). Named entities are more readable; numeric works for any character.
Is my text sent to a server?
No. All encoding and decoding is done entirely in your browser with JavaScript. Your text never leaves your device.
Does this tool handle Unicode characters?
Yes. With "Encode all non-ASCII" enabled, all Unicode characters (emojis, accented letters, CJK characters, etc.) are encoded as numeric entities. Without this option, only the five HTML-critical characters are encoded.

More Free Tools

Sister site: GenFactories – Fun Generators