HTML Entity Encoder & Decoder

Escape HTML-sensitive characters, decode entity-filled snippets from CMS content, and convert named or numeric entities locally in your browser.

0 characters

0 characters

Ready

Template-safe text

Encode characters that can break HTML markup before pasting text into examples, templates, snippets, or CMS fields.

Entity decoding

Turn named entities, decimal entities, and hex entities back into readable text when debugging feeds or copied source.

Private local processing

The tool uses browser-native text and HTML parsing behavior. No upload endpoint or server-side conversion is involved.

Frequently Asked Questions

Is my text uploaded when I encode or decode HTML entities?

No. HTML entity encoding and decoding run with JavaScript in your browser. The text you paste is not sent to Convertr servers.

Which characters should I encode for HTML?

Encode at least ampersands, less-than signs, greater-than signs, double quotes, and apostrophes when displaying untrusted text in HTML.

Can this decode numeric HTML entities?

Yes. The decoder handles named entities, decimal numeric entities such as ©, and hexadecimal numeric entities such as 😀 using the browser HTML parser.

HTML Entity Encoder and Decoder

Encode reserved characters as HTML entities or decode entities back to text.

Input
Text plus encode or decode direction and entity options.
Output
Encoded HTML-safe text or decoded Unicode text.
Real limitations
Entity encoding does not sanitize untrusted HTML or make it safe to insert into every DOM context; decoding can reveal active markup.
Privacy and data handling
text plus encode or decode direction and entity options is processed in this browser tab. Convertr does not receive or store it; closing or reloading the page clears the working state unless the tool explicitly offers a local download.

How to use this tool

  1. Provide text plus encode or decode direction and entity options in the tool controls.
  2. Choose the settings that affect encoded HTML-safe text or decoded Unicode text, then run the tool.
  3. Review encoded HTML-safe text or decoded Unicode text before copying or downloading it.

Common failure modes

Malformed numeric entities remain unchanged or are flagged, and an empty input produces no output.

Useful example

Encode <strong>A&B</strong> so angle brackets and the ampersand can be displayed as text.