HTML Entities
Escape reserved characters to HTML entities, or decode entities back to plain text.
Escape reserved characters to HTML entities, or decode entities back to plain text.
Type or paste text or HTML into the box, then click Encode or Decode.
Yes - decoding uses a detached textarea's own innerHTML/.value trick rather than a hand-rolled regex, so it's correct for every named and numeric entity a browser understands, not a hardcoded shortlist.
Yes - textarea content is never parsed as markup, so pasting HTML in to decode it can't execute anything.
No, both encoding and decoding happen entirely in your browser.
28 visits