HTML Entity Encoder / Decoder
Encode special characters to HTML entities (&, <, >, "…) or decode them back to plain text. Supports named entities, decimal (&), and hex (&) forms. Essential for safely embedding user input in HTML.
Runs in your browser
Nothing uploaded
Free, no signup
Ctrl + Enter to run · Recent brings back your last inputs · Everything stays in this browser
HTML Entity Encoder / Decoder: questions
Why encode HTML entities?
To prevent HTML injection and XSS attacks. Characters like <, >, &, and " must be encoded when inserted into HTML to avoid being interpreted as markup.
What is the difference between & and &?
Both represent the ampersand character (&). Named entities (&) are human-readable; decimal (&) and hex (&) are numeric representations of the same Unicode code point.
Made something with AI? Share it as a private link.
Drop in the HTML from Claude, ChatGPT or any editor and get a link your client can open anywhere — with a password, view tracking, comments and approval.