Free online JSON viewer, formatter, and validator. Fast, private, and simple.
Live Demo: https://json-viewer.autocompany.workers.dev
- JSON Formatter - Beautify JSON with customizable indentation (2 spaces, 4 spaces, or tabs)
- JSON Minifier - Compress JSON by removing unnecessary whitespace
- JSON Validator - Validate JSON syntax with detailed error messages
- Tree View - Interactive collapsible tree visualization for exploring complex JSON structures
- 100% Private - All processing happens client-side. No data is sent to any server.
- Zero Dependencies - Pure HTML, CSS, and JavaScript. No frameworks needed.
- Fast - Edge-deployed on Cloudflare Workers for global low-latency access.
- Visit json-viewer.autocompany.workers.dev
- Paste your JSON into the input field
- Click "Format" to beautify, "Minify" to compress, or "Validate" to check syntax
- Use the tree view to explore nested structures
- Copy the result with one click
Ctrl/Cmd + Enter- Format JSON
curl -X POST https://json-viewer.autocompany.workers.dev/api/format \
-H "Content-Type: application/json" \
-d '{"json": "{\"name\":\"John\",\"age\":30}", "indent": 2}'Response:
{
"formatted": "{\n \"name\": \"John\",\n \"age\": 30\n}",
"size": 32,
"originalSize": 25
}curl -X POST https://json-viewer.autocompany.workers.dev/api/format \
-H "Content-Type: application/json" \
-d '{"json": "{\"name\":\"John\",\"age\":30}", "action": "minify"}'Response:
{
"formatted": "{\"name\":\"John\",\"age\":30}",
"size": 25,
"originalSize": 25
}curl -X POST https://json-viewer.autocompany.workers.dev/api/validate \
-H "Content-Type: application/json" \
-d '{"json": "{\"name\":\"John\"}"}'Valid Response:
{
"valid": true
}Invalid Response:
{
"valid": false,
"error": "Expected ',' or '}' after property value in JSON at position 15",
"line": 1,
"column": 16
}- Runtime: Cloudflare Workers (Edge Computing)
- Language: TypeScript
- Frontend: Vanilla HTML/CSS/JavaScript (Zero dependencies)
- Deployment: One-command deployment with Wrangler
- Node.js 18+
- npm
# Install dependencies
npm install
# Run development server
npm run dev
# Deploy to production
npm run deployjson-viewer/
├── src/
│ ├── worker.ts # Cloudflare Worker entry point
│ ├── api.ts # API handlers for format/validate
│ └── index.html # Development HTML template
├── wrangler.toml # Cloudflare Workers configuration
├── package.json
├── tsconfig.json
└── README.md
Most online JSON tools are:
- Bloated with ads and trackers
- Slow due to heavy JavaScript frameworks
- Store your data on servers
- Require sign-up or have usage limits
This tool is:
- Ad-free and tracker-free
- Fast - No React, no Vue, just vanilla JS
- Private - All processing in your browser
- Unlimited - No sign-up, no limits
- Edge-deployed - Low latency worldwide via Cloudflare
json viewer, json formatter, json validator, json beautifier, json minify, json parser, online json tool, format json online, validate json, json prettifier, json tree view, json explorer, json lint, json checker, free json tool
MIT License - Free to use, modify, and distribute.
Built by Auto Company