ToolSprinkle.
A USEFUL TOOL INSIDE YOUR GUIDE

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

ToolSprinkle JSON formatter embedded in WordPress with input and formatted output
A self-contained formatter for documentation, tutorials and developer knowledge bases.

Make the example something readers can use

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

  1. Download the ZIP above without extracting it.
  2. Open WordPress → Plugins → Add New → Upload Plugin. Upload, install and activate.
  3. Add a Shortcode block to your page containing [toolsprinkle_json].
  4. 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.

What would you like to do?

↑ ↓ Navigate · Enter Open · Esc Close. Switching tools clears unsaved input.