How to Use JSONHint Tools: Complete Developer Guide
A comprehensive walkthrough of all 66 tools — from JSON formatting and schema validation to JWT decoding, diff comparison, and data conversion.
JSONHint is a free, browser-based suite of 66 developer utilities covering data formatting, validation, conversion, encoding, security, and more. Most tools process input in your browser. IP lookup contacts an external provider, and optional URL imports contact the URL supplied. Advertising and library loading can also make network requests. This guide walks through the major tool categories, explains what each does, and shows you how to get the most out of them.
1. JSON Formatting & Validation
The JSON tools are the core of JSONHint and the most widely used. They handle the full lifecycle of JSON data: formatting raw API responses into readable output, catching syntax errors, validating structure against a schema, and visually exploring deeply nested objects.
JSON Formatter
The JSON Formatter takes raw, minified, or incorrectly indented JSON and instantly restructures it with clean, consistent indentation. Paste your JSON into the editor and click Format JSON.
- Sort Keys: Choose Alphabetical to sort all object keys A–Z for consistent, diffable output. Choose Semantic Sorting to float identifier keys like
id,name, andtypeto the top of every object automatically. - Indentation: Switch between 2-space, 4-space, or Tab indentation to match your team's code style.
- Filter by Key: Enter a key name in the filter box to extract only matching nodes from a large JSON payload — useful when an API response has hundreds of fields but you only care about a few.
- Minify: Click Minify JSON to compress formatted JSON back into a single line for production payloads or API requests.
JSON Validator & Error Fixer
The JSON Validator checks your JSON against RFC 8259 in real time and reports errors with the exact line and column number. What makes it especially useful is the one-click auto-fix system: when it detects a known fixable error — trailing comma, single-quoted strings, unquoted keys, missing brackets — a Fix button appears so you can repair the JSON without manually editing it.
Common errors it catches and fixes automatically: trailing commas, single-quoted string values, unquoted object keys, missing commas between elements, and unclosed braces or brackets.
JSON Schema Validator
The JSON Schema Validator goes beyond syntax checking — it validates the structure and content of a JSON document against a JSON Schema (Draft-07 or Draft 2020-12). Paste your schema in the left panel and your JSON in the right panel, then click Validate. Errors are reported with the exact JSON path (e.g., /users/0/email) so you can pinpoint which field failed and why.
This is essential for teams that define API contracts with JSON Schema, or use schema-based tools like OpenAPI, Swagger, or react-jsonschema-form.
JSON Viewer & JSONPath Tester
The JSON Viewer renders JSON as a collapsible tree, letting you expand and collapse nested objects and arrays to explore large payloads without losing your place. The JSONPath Tester lets you write JSONPath expressions (like $.store.book[*].author) and see the matching values extracted from your JSON in real time — useful for exploring nested data or debugging API response queries.
2. Diff & Compare Tools
The diff tools let you compare two versions of a document and see exactly what changed. JSONHint has three separate diff tools depending on what you're comparing.
JSON Diff
The JSON Diff tool performs a semantic comparison, not a plain text diff. This means {"a":1,"b":2} and {"b":2,"a":1} are treated as identical — because JSON objects are unordered by definition. Differences are shown in a side-by-side view with green for additions, red for deletions, and yellow for modified values.
Enable Sort Keys Semantically before comparing to normalize key ordering in both documents first — this eliminates false positives caused by key reordering that carries no semantic change.
XML Diff & Text/Code Diff
The XML Diff compares two XML documents structurally, highlighting element additions, removals, and attribute changes. The Code & Text Diff handles any plain text — use it for comparing SQL scripts, shell scripts, Markdown files, configuration YAML, or any other text format. It operates at both line level and character level simultaneously, so a single changed character inside a long line is still highlighted precisely.
3. Data Format Converters
JSONHint covers the full matrix of conversions between JSON, XML, YAML, and CSV. All converters work locally in your browser with no file size restrictions beyond your available RAM.
- JSON → XML and XML → JSON: Convert between the two most common data interchange formats. Useful when integrating modern REST APIs with legacy SOAP services.
- JSON → YAML and YAML → JSON: Convert between data format and configuration format. Essential for Kubernetes manifests, Docker Compose files, and CI/CD pipelines that use YAML but produce or consume JSON.
- JSON → CSV: Flatten a JSON array of objects into a spreadsheet-compatible CSV. Each object key becomes a column header, each object becomes a row.
- JSON → TypeScript: Generate TypeScript interfaces and type definitions directly from a JSON object. Eliminates manual interface writing when onboarding a new API.
4. Security, Encoding & JWT Tools
These tools handle sensitive data — JWTs, API keys, passwords, and cryptographic hashes. Because all processing is client-side, you can safely paste production secrets without any data leaving your browser.
JWT Decoder & Generator
The JWT Decoder splits a JSON Web Token into its three parts — header, payload, and signature — and displays each as decoded JSON. It also shows whether the token is expired based on the exp claim and formats all Unix timestamps into human-readable dates.
The JWT Generator lets you sign tokens using HS256, HS384, or HS512 with a secret key, or RS256/RS512 with a PEM-encoded private key. Enter your payload as JSON, set an expiry, and get a signed JWT instantly.
Base64 Encoder/Decoder
The Base64 tool supports both standard Base64 and Base64URL (the URL-safe variant used in JWTs and data URIs). Toggle between Encode and Decode mode, or use the file upload to Base64-encode binary files like PDFs and images for embedding in JSON or HTML.
Hash Generator & HMAC
The Hash Generator computes MD5, SHA-1, SHA-256, and SHA-512 hashes using the browser's built-in Web Crypto API — no third-party library involved. The HMAC Generator computes keyed message authentication codes with HMAC-SHA256 or HMAC-SHA512, which is the standard for signing API webhook payloads (used by Stripe, GitHub, Shopify, and others).
5. Developer Utilities
Beyond data and encoding, JSONHint includes a set of day-to-day developer utilities covering networking, scheduling, and text processing.
- Regex Tester: Test regular expressions against a string with live match highlighting. Supports all JavaScript regex flags (g, i, m, s, u).
- Cron Expression Generator: Build and explain cron schedules with a visual editor. Supports both 5-field (Unix) and 6-field (seconds) formats.
- UUID Generator: Generate RFC 4122 v4 UUIDs in bulk — up to thousands at a time — and copy or download the list.
- Timestamp Converter: Convert between Unix epoch milliseconds/seconds and ISO 8601 datetime strings in any timezone.
- Chmod Calculator: Build Linux file permission strings visually using checkboxes and immediately see the numeric octal value (e.g., 755) and the symbolic notation (rwxr-xr-x).
- Subnet Calculator: Enter any CIDR notation (e.g., 192.168.1.0/24) to get the network address, broadcast address, usable host range, and total host count instantly.
6. Privacy & Data Security Model
JSONHint is architected with a strict client-side-only processing model. Here is what this means technically:
- No network requests for your data: When you click Format, Validate, Convert, or any other action, the operation runs in your browser's JavaScript engine. Zero HTTP requests are made to any backend server with your input data.
- Web Workers for large files: For files over 1MB, processing is offloaded to a Web Worker thread so the UI stays responsive. The worker thread never communicates with external servers.
- Cryptography via Web Crypto API: Hash generation (SHA-256, SHA-512) and HMAC operations use the browser's built-in
window.crypto.subtle— the same API used by banking and security applications. No cryptographic library is downloaded at runtime. - No login, no account, no telemetry: JSONHint does not require an account. No tool inputs, outputs, or usage patterns are tracked or stored on any server. Anonymous aggregate analytics (page views, error counts) are collected via Google Analytics.
This architecture makes JSONHint safe for pasting production JWT tokens, API secrets, database credentials, HMAC keys, and personally identifiable information — something that is not safe to do with tools that process data server-side.
Ready to get started?
All 66 tools are free, no account required.