Pretty Js

Pretty print your Javascript and JSON. Format your code for easier reading. Convert between XML and JSON.

Pretty Js: Javascript and JSON formatter and XML converter

Pretty Js is a Chrome tool, useful for developers and coders. Its primary purpose is to format Javascript and JSON for better readability. It operates real-time as you type or when you paste into it. It also has the ability to convert JSON to XML and vice versa. The tool provides additional features such as preserving the work state even if you close it, and it provides copy-paste buttons for convenience. It even checks for basic JSON validation errors. Plus, it's free of charge!
Install from Chrome Web Store

Extension stats

Users: 7,000+
Rating: 4.75
(8)
Version: 1.0.12 (Last updated: 2022-10-19)
Creation date: 2020-04-20
Risk impact: Low risk impact
Risk likelihood:
Manifest version: 3
Permissions:
  • clipboardRead
  • contextMenus
Size: 1.84M

Other platforms

Pretty Pink Theme +HOME (v1.0)
4.50 (206) 29,914+
Not available on Firefox
Pretty Js (v1.0.12)
5.00 (2) 3,042+
Want to check extension ranking and stats more quickly for other Chrome extensions? Install Chrome-Stats extension to view Chrome-Stats data as you browse the Chrome Web Store.

Extension summary

A simple tool to quickly and easily format your JavaScript and JSON. See your code formatted as you type! Or have your code instantly converted when you paste into the text area. Also lets you convert between JSON and XML.

This tool is useful if you :

  • want a quick way to format JSON that is, for example, returned as a single line by a Web service call.
  • have a JSON structure that's just badly formatted,
  • just want to prototype a JSON structure and have it formatted as you type rather than worry about formatting it yourself.
  • want to see the formatted JSON while debugging a web service call
  • need your JSON as XML or want to convert some XML to JSON

Features:

  • available as an icon on your Chrome toolbar
  • remembers the current state so when you reopen the tool you can carry on where you left off- you won't lose any of your work when you close the tool
  • convenient buttons for copy and pasting to and from the clipboard
  • provides a useful button for replacing the JSON in your work area with the formatted version - useful when prototyping a JSON structure
  • formats Javascript
See more

User reviews

I'm loving this extension, very easy to use
by Luis R, 2021-06-27

Просто лучший. Теперь могу быстро читать логи из graylog. LIKEIT!!!
by Nikita Krasnikov, 2019-11-05

Does what it promises, but should have the ability to paste a url and, more importantly, to collapse objects and arrays. That would be especially helpful for working with geojson where there are massive chunks of coordinates.
by Emily P, 2019-10-21
View all user reviews

Extension safety

Risk impact

Pretty Js requires very minimum permissions.

Risk likelihood

Pretty Js has earned a good reputation and can be trusted.

Upgrade to see risk analysis details

Promo images

Pretty Js small promo image
Small promo image

Similar extensions

Here are some Chrome extensions that are similar to Pretty Js: