Bare-bones JSON formmater (prettify/uglify) entirely in client-side Javascript
HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
jsonFormatter.html

README.md

jsonFormatter

This is a very basic JSON formatter. It can prettyify and uglify JSON text, with a few options as to how to handle indentation when prettifying.

Everything happens entirely on the client side! Live Preview.

I created this because I was frustrated with other online JSON formatters that require the data to be submitted to the server, and don't provide formatting options. The browser can already handle this with the JSON.stringify() method that is built-in on every modern browser. Plus this way you don't have to worry about where your data goes when you hit submit, and you don't have to wait for it to upload when you have a very large chunk of data.

No internet connection is even required - written entirely in Vanilla JS.