JSON Formatter
Format, minify and validate JSON without changing large integers, number notation, key order or string escapes. Import files and locate syntax errors.
Escape HTML special characters or decode named and numeric entities. Optionally encode non-ASCII characters as numeric entities.
Updates as you type or change an option
Use entities when tags need to appear as text in a page or document. Escaping here does not replace context-specific handling for JavaScript, CSS or URLs.
Enter an HTML fragment on the left to turn its special characters into entities. Paste entities such as & or 你 on the right to recover the text.
By default only HTML special characters are escaped. The optional mode also escapes non-ASCII characters. Results are displayed as text and never executed. Decoding handles semicolon-terminated entities and leaves unknown ones unchanged. Input limit: 2 MiB.
Each conversion decodes one layer. Decode again only after checking the source. Unknown entities remain unchanged, and the tool does not execute decoded tags.
Yes. The default mode leaves non-ASCII letters intact. The additional Unicode option turns characters such as é into é; decoding accepts recognized entities ending in a semicolon.
Your choice about analytics
We use Umami to measure page visits. Analytics is optional, and your tools work either way.
Your current setting allows analytics.
Your current setting does not allow analytics.
The analytics service has changed. Refresh the page after finishing your current work to apply the new settings.
Your browser is sending a Do Not Track or Global Privacy Control signal. Analytics will remain off.
We use Umami to understand which pages people visit and how they find this site. You can decline or change your choice at any time. All site features will still work.
Your choice is saved in this browser for six months. Analytics does not upload files or content you enter in our tools.
Privacy Policy
Comments
0