Your readers’ JSON. Formatted without losing a digit.
Embed ToolSprinkle’s JSON formatter in a WordPress page. Readers can check and tidy an API example without leaving your documentation — and without sending the text to a formatting service.
Download free WordPress plugin v1.0.0 (ZIP) · Source and documentation

Make the example something readers can use
- API documentation: let readers format a response beside the field explanations.
- Developer tutorials: give learners immediate validation when they edit an example.
- Internal knowledge bases: keep a lightweight formatter next to integration notes, without adding an account or API key.
Large IDs stay large IDs
Try {"id":9007199254740993,"amount":1.2300}. Formatting changes the whitespace, but preserves 9007199254740993 and 1.2300 exactly. The widget preserves number tokens instead of rounding them through JavaScript’s ordinary number type.
Duplicate object keys are rejected rather than silently keeping one value. Invalid JSON and non-finite constants are also rejected. The input limit is 500,000 characters and 100 nesting levels.
Install, add a shortcode, publish
- Download the ZIP above without extracting it.
- Open WordPress → Plugins → Add New → Upload Plugin. Upload, install and activate.
- Add a Shortcode block to your page containing
[toolsprinkle_json]. - Preview with one of your own examples. Visitors can download the formatted result.
Use [toolsprinkle_json theme="dark"] for a dark widget. Multiple widgets work independently. Requires WordPress 6.4+, PHP 8.0+ and JavaScript.
No remote formatting service
The plugin processes input in the browser and does not send or store it. It requires no remote library, account or API key. Reloading resets the widget; download the result before leaving. Your hosting provider and other WordPress plugins have their own data practices.
A ToolSprinkle credit is optional and off by default. Add attribution="yes" to the shortcode if you want to show it. The source and bundled assets are GPL-2.0-or-later.
Updates and help
This independently installable GitHub release is not yet approved in the WordPress.org directory. Get updates from GitHub Releases, watch the walkthrough or contact us with a reproducible example. Just need to format something now? Use the online JSON formatter.