4m
Beginner

Pretty Print JSON with 2 Spaces

Format JSON with two-space indentation for debugging and compact readability.

Get Started

Click below to use JSON Formatter

Use JSON Formatter

Steps

1

Open the JSON tool

Use the Editor tab to access input and output editors.

2

Set indentation

Choose 2 spaces in the toolbar.

3

Format

Click Format to pretty print your JSON.

Tips & Tricks

Optional: sort keys

Enable key sorting for easier diff and reviews.