HTML Encoder
Encode text to HTML entities & symbols.
Back to Tools
HTML Encoder
Escape special characters for safe web display.
Raw Text
HTML Entities
Symbol Library
HTML Entity Encoder & Decoder
Web browsers reserve certain characters (like <, >, and &) for HTML syntax. To display these characters as text, you must "escape" them into HTML entities. This tool automates that process safely.
Preventing XSS Attacks
Encoding user input is the first line of defense against Cross-Site Scripting (XSS). By converting <script> into <script>, you ensure the browser renders it as harmless text rather than executing it as code.
Named vs. Numeric
Entities can be named (e.g., ©) or numeric (e.g., ©). Named entities are easier to remember, but numeric entities have broader support for obscure Unicode characters across older browsers.
Advertisement