PrettyJSON Bookmarklet

Use this bookmarklet to re-format JSON for easy readability.

If you call a RESTful web service using the Google Chrome browser (rather than using Microsoft Internet Explorer) it will display the JSON response directly in the browser window. However, the JSON will look like one continuous jammed together string of characters by default. To format the JSON nicely within the Chrome browser window, we can add a handy bookmarklet which will use JavaScript to reformat the JSON with appropriate carriage returns and white space tabs.

I created this bookmarklet code myself, so there is no source link to reference.

Hope you find this handy.

-- Todd

Source (

Download Bookmarklet:

View Bookmarklet Code:

Bookmarklet Source Code:


Rate it:



Comments so far. Add yours.