Which encoding profile?
Minimal safe escapes only characters required for the chosen HTML context. ASCII-safe additionally converts non-ASCII text. Named/decimal/hex profiles convert unsafe + non-ASCII characters using the selected notation.
Text: Tom & Jerry <3
Attribute: title="Tom & Jerry"
HTML5 decoding
The decoder understands the complete HTML5 named-reference table plus decimal and hexadecimal numeric references, including the browser compatibility replacement rules for legacy numeric references.
© → ©
© → ©
😀 → 😀
Why context matters
HTML parsing rules differ between text and attributes, especially for legacy named references without semicolons. Choose the destination context before encoding or auditing.
Double encoding
If text already contains &, encoding its ampersand again produces &amp;. Preserve Existing References is enabled by default, and the audit also detects likely double-encoded references.
Round-trip guard
For encoding, OneFreePlace immediately decodes the result with HTML5 rules and compares the semantic text. If they differ, output use is blocked and the audit explains why.
Limits
This tool works on character references, not full HTML sanitization. Encoding text does not make arbitrary HTML, URLs, CSS or JavaScript safe. Use a context-specific sanitizer when inserting untrusted markup.