Online Equivalent of JSON.stringify(obj, null, 2)
JavaScript's JSON.stringify(obj, null, 2) is the standard way to produce indented JSON. Use our formatter as a zero-code alternative for reading and debugging JSON payloads in the browser.
Quick Paste Sources for JavaScript Developers
- DevTools Network tab: Right-click any request → Copy Response → paste here.
- Console: Copy output from
console.log(JSON.stringify(obj)) - API clients: Paste raw body from Insomnia, Hoppscotch, or Postman.
Who this guide is for
- Format fetch() API response JSON from DevTools
- Pretty print JSON from WebSocket messages
- Inspect JSON stored in localStorage or sessionStorage
- Debug Express.js and Next.js API route responses