How to pretty print log output in Chrome DevTools Console? July 31, 2023 by Tarik You could format the data as JSON: console.log(JSON.stringify({foo:1, bar:2}, null, 4)); { "foo": 1, "bar": 2 }