Encode HTML tag syntax safely
Input
<div id="container">Alert & Notice</div>Example output
<div id="container">Alert & Notice</div>Encode reserved HTML characters and non-ASCII symbols into safe named entities (&, <, >, ", ') or numeric character references (decimal and hex). Decode HTML entities back into clean, unescaped text in your browser with 100% privacy.
| HTML Specification | W3C / WHATWG HTML5 Named Character References |
|---|---|
| Entity Types | Named entities, Decimal NCR (&#...), Hex NCR (&#x...) |
| Maximum Input | 2 MB |
| Execution Deadline | 3 s |
Input
<div id="container">Alert & Notice</div>Example output
<div id="container">Alert & Notice</div>Input
<span>Copyright © 2026 & Co.</span>Example output
<span>Copyright © 2026 & Co.</span>In HTML attribute values, quotes must be escaped as " or '. In text content, only ampersands (&) and left angle brackets (<) are strictly required, but escaping all five special characters ensures robust cross-context safety.
When encoding raw text, ampersands are converted first (& to &) so subsequent entity replacements do not introduce compound or corrupted entity strings.
The decoder accepts both strict standards-compliant entities with trailing semicolons (©) and legacy HTML entities without trailing semicolons.
XML Formatter
Format, indent, prettify, or minify XML documents with customizable indentation, comment preservation, and self-closing tags.
XML ↔ JSON Converter
Convert bi-directionally between XML and JSON documents with configurable indentation, attribute prefixes, text node handling, and local XXE protection.
ASCII & Unicode Code Point Converter
Convert text characters into ASCII/Unicode code points, hex, decimal, or escape sequences, and translate code points back to text.
Base64 Encoder / Decoder
Encode UTF-8 text to standard or URL-safe Base64 and decode Base64 back to text.
Encoding HTML entities prevents browsers from interpreting user-supplied text as markup, mitigating cross-site scripting (XSS) vulnerabilities and preventing syntax errors in rendered pages.
Named entities use human-readable mnemonics (like & or ©) defined in the HTML specification. Numeric character references (like & or &) use the character's exact Unicode code point and work across XML and HTML.
No. All encoding and decoding operations execute entirely in your web browser memory.