Free HTML Entity Encoder/Decoder - Convert Special Characters Online

HTML Entity Encoder / Decoder

Convert special characters to HTML entities and back. Supports named, numeric, and UTF-8 entities.

Input: 0 chars Output: 0 chars
Input
Output

What is HTML Entity Encoding?

HTML entity encoding replaces special characters with their corresponding HTML entity codes. This is essential when displaying code snippets, preventing XSS attacks, or embedding content that contains characters with special meaning in HTML.

Common HTML Entities

Why Use Entity Encoding?

Frequently Asked Questions

What is the difference between named and numeric entities?

Named entities use descriptive names like < for less-than. Numeric entities use decimal or hex codes like < or <. Both produce the same character. Named entities are more readable; numeric entities support any Unicode character.

Does this tool support Unicode characters?

Yes. This tool supports all Unicode characters including emoji, accented characters, and non-Latin scripts. UTF-8 characters are encoded using their numeric HTML entity equivalents.

Is my data sent to a server?

No. All encoding and decoding happens entirely in your browser using JavaScript. No data is ever transmitted to any server.