how to pretty print json in notepad ++

Notepad++: Pretty Print JSON in a Flash

By Sarah White
AD

Working with JSON in Notepad++ is a breeze once you know the right tricks. One common task is pretty printing JSON files to improve readability. Here's how to do it efficiently.

Before diving into the steps, ensure you have the JSON Viewer plugin installed in Notepad++. If you haven't, head over to the Plugins menu, then Plugins Manager, check Show Plugin Manager on Startup, find JSON Viewer in the available list, and click Install.

Understanding Notepad++ For JSON

Notepad++ offers several features to handle JSON effectively. The JSON Viewer plugin adds functionality specifically designed for JSON files.

AD
How to add cute fonts on Kilonotes
How to add cute fonts on Kilonotes
12+ DIY Notepad Ideas That Are Easy and Fun
12+ DIY Notepad Ideas That Are Easy and Fun
four different papers with pictures of people in green and white outfits, one is holding a flower
four different papers with pictures of people in green and white outfits, one is holding a flower

Once installed, you can open JSON files, and the plugin will parse the content, allowing you to work with the data in a tree view on the right side of the editor.

Pretty Print JSON: Using the JSON Plugin

The JSON menu contains tools to format and validate JSON data.

How to make a DIY Personalized Notepad - Everyday Megan
How to make a DIY Personalized Notepad - Everyday Megan
free printable notepad
free printable notepad
How to Make Notepad++ Compare Two Files With a Plugin
How to Make Notepad++ Compare Two Files With a Plugin

To pretty print JSON, follow these steps:

  1. Open your JSON file in Notepad++.
  2. Choose JSON from the menu, then Pretty Print.
  3. Review the output and, if needed, tweak the formatting settings. For instance, you can adjust the number of spaces used for indentation in Settings > Preferences > Miscellaneous > Number of spaces per indentation.

Pretty Print JSON: Manual Formatting

Sometimes, the default formatting might not suit your needs. You can manually pretty print JSON by adjusting the indentation.

AD

Notepad++ uses the Tab key for indentation. You can visually see the tab size in the TAB line at the bottom of the editor or change it in the preferences. Here's how:

Notepad in Computer Science and Windows Guide
Notepad in Computer Science and Windows Guide
Create a notebook with me
Create a notebook with me
๐Ÿ“š How to Make Quick Notes Fast for Exams
๐Ÿ“š How to Make Quick Notes Fast for Exams
Hereโ€™s How I Make Notepads From Home for my Stationery Shop! #stationery #notepad #stationeryshop
Hereโ€™s How I Make Notepads From Home for my Stationery Shop! #stationery #notepad #stationeryshop
FREE NOTEPAD SET
FREE NOTEPAD SET
Coquette Digital Note-Taking Templates & Coquette Stickers ๐ŸŽ€ Free Digital Note Templates
Coquette Digital Note-Taking Templates & Coquette Stickers ๐ŸŽ€ Free Digital Note Templates
  • Go to Settings > Preferences > Tab Settings.
  • Adjust the Replace by value to control the number of spaces equivalent to one tab.

Mastering these techniques allows you to handle JSON formatting efficiently in Notepad++. Staying updated with the latest features and plugins ensures you're using the best tools for your work.

Making boring notepad๐Ÿ˜โ“๐Ÿ—’ GoodNotes Stickers | Digital Sticky Notes
Making boring notepad๐Ÿ˜โ“๐Ÿ—’ GoodNotes Stickers | Digital Sticky Notes
free printable notepad
free printable notepad
a computer screen with some type of diagram on it
a computer screen with some type of diagram on it
AD