OneFreePlace
TOOL #349 · HTML ENTITIES

HTML Entity Encoder / Decoder

A browser-local HTML5 character-reference workbench with context-aware escaping, all WHATWG named entities, decimal/hex references, legacy-reference diagnostics, recursive decode, double-encoding detection, round-trip verification, batch files and a searchable entity inspector.

2,125 canonical HTML5 namesText + attribute contextsNamed · decimal · hexRound-trip guardBatch ZIPNo upload
Input
Verified output
Input characters0
Output characters0
References found0
Named / numeric0 / 0
Byte change0%
Round-trip guard—
Processing0 ms

Safety audit

ReadyConvert input to run the audit.

What this tool protects

The encoder distinguishes HTML text from quoted attributes, so it does not blindly escape everything. Existing valid references can be preserved to prevent double encoding. Every encode result is decoded again locally and compared against the intended semantic text before Copy/Download is enabled.

Engine ready. Ctrl/Cmd + Enter converts.

Entity finder

Search a character, entity name or Unicode code point.

Search the complete HTML5 named-reference table.

References in current input

ReferenceTypeDecoded / code point
No references inspected yet.

Batch entity processor

Process multiple text/HTML files with the current converter settings. Files stay in this browser; successful outputs are packed into a ZIP locally.

Drop or choose .txt / .html / .htm / .xml files

No files selected.

Prevents & from becoming & when the source already contains a valid entity.

Off follows browser-compatible HTML5 legacy behavior. On decodes only references ending in ;.

Use 2+ only when intentionally unpacking strings such as <. One pass is safest.

Downloaded results are UTF-8 text.

The inspector never renders decoded HTML; dynamic values are displayed as text to avoid script execution.

Encoding, decoding, file reading, inspection and ZIP creation are local. This package contains no conversion endpoint, analytics call or account requirement.

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.

&copy; → ©
&#169; → ©
&#x1F600; → 😀

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 &amp;, encoding its ampersand again produces &amp;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.