JSON Pretty Print Online

Paste your JSON on the left and get a prettified and syntax highlighted version on the right.

Input
Characters: 0
Words: 0
Lines: 0
Size: 0
Tab Space
Output

            
            

        

Json Formatter

Want to quickly format your JSON data? Our tool then will be very handy to you.

Simply copy your JSON data on the left and it will get computed to a prettified version on the right with some syntax highlighting.

Need to save for later? Hit the download button and your prettified dataset will be saved on your computer for later.

Format Json Code Examples

Developers... are you searching for json_encode? I see you đź‘€

javascript logo Javascript
php logo Php

How do I format (pretty print) my JSON data: ?

  • Format and Prettify JSON
    One way to format JSON in javascript is you have to convert your JSON into an Object with JSON.parse() so encoded characters are decoded and then follow it up with JSON.stringify()
                        
                                        let json = '{"test": "hello world", "result": 44 }';
    const obj = JSON.parse(json);
    let result = JSON.stringify(obj, null, 4);
    console.log(result);
  • Format and Prettify JSON

What is JSON?

JSON is an open standard file format and data interchange format that uses human-readable text to store and transmit data objects consisting of attribute–value pairs and arrays. It is a common data format with diverse uses in electronic data interchange, including that of web applications with servers.

Wikipedia Source

String Tools
JSON
Calculators
Encryption