HTML Entities Encoder / Decoder
Convert text to HTML entities (named and numeric) or decode entities back to readable characters. Prevents markup breaking and escaping issues when embedding user content — fully offline.
Encode to escape <, >, &, quotes and non-ASCII characters, or decode a string full of entities back to plain text. Both named (&) and numeric (&) forms are understood.
Input
& < > " ' — the minimum for safe HTML
Entities
Waiting for input
Paste text to convert special characters to entities.
Frequently asked questions
Why would I encode HTML?
Encoding prevents a string from being interpreted as markup — essential when rendering user-generated content to avoid broken layout or injection.
What is a numeric character reference?
& is the numeric form of &. Both render the same character; numeric references are useful when a name does not exist.