JSON Formatter & Generator
Format or minify valid JSON, validate input syntax or generate sample JSON records locally.
Encode HTML special characters or decode supported common and numeric HTML entities.
Escape five HTML special characters, or decode the supported common named and numeric character references. This is a text conversion tool rather than a complete HTML parser or sanitiser.
Example: Encoding <p>A & B</p> produces <p>A & B</p>.
How it works: Encoding replaces &, <, >, double quote and apostrophe. Decoding recognises amp, lt, gt, quot, apos, nbsp and valid decimal/hexadecimal numeric references; other named entities remain unchanged.
Encoding is suitable for displaying the five covered special characters as text in appropriate HTML contexts. Decoding handles only the documented named entities and valid numeric references.
Encoding <b>A & B</b> gives <b>A & B</b>. It does not parse or remove an HTML script.
Guidance updated . Methods and corrections
References: html.spec.whatwg.org
Your calculation values and selected files are not stored. Recent and saved tools keep tool identifiers; your market preference keeps only its country code in this browser.
Use the grouped tool selector above the form. Each tool has its own URL, and your browser’s Back button returns to the previous tool.