Toolbox

Online HTML Entity Encoder / Decoder

HTML实体HTML转义数字实体防XSS

Convert &, <, >, quotes and non-ASCII text into named or numeric HTML entities, decode 40+ named entities plus decimal/hex references, prevent XSS and tag conflicts, fully local.

输入
结果
All processing is done locally in your browser, no upload

How to Use

  • Paste any valid JSON, supports nesting, arrays and escapes
  • Click Beautify to auto indent and format
  • Click Minify to remove whitespace into one line
  • All operations run locally for privacy

Related Tools

FAQ

What is an HTML entity?

An HTML entity represents special characters as &name; or &#number;, e.g. < as &lt;, 你 as &#20320;, avoiding conflicts with tag syntax.

Why handle & < > and quotes specially?

They are reserved HTML syntax characters; raw output can break page structure or enable XSS, so encoding them displays the original text safely.

Will my data be uploaded?

No, all encoding and decoding runs locally in your browser.