Query, Flatten, Encode & Analyze JSON
Use JSONPath, JWT decoding, Base64 encoding, JSONC comment stripping, and token counting.
Developer Guide & FAQs
Learn how JSON Lab processes, formats, validates, and converts data securely in your browser.
100% Client-Side Data Protection
All data processing, formatting, syntax validation, and conversion occurs strictly within your web browser JavaScript engine. No JSON payloads are transmitted to external servers, APIs, or databases.
Instant Execution & Large File Support
Built with high-performance vanilla JS to handle large JSON documents instantly. Seamlessly view collapsible tree nodes, format payloads, sort keys alphabetically, and download structured outputs with one click.
Seamless Multi-Format Conversion
Effortlessly convert JSON arrays and objects to CSV spreadsheets, YAML configurations, XML documents, SQL queries, or TypeScript interfaces. Import via direct file upload or CORS-enabled API endpoints.
JSON utilities: path queries, encoding, decoding, and schema tools
Beyond formatting and conversion, daily JSON work involves recurring tasks: querying nested fields without writing code, decoding JWT tokens to read their payload, encoding JSON for safe transport, counting tokens before sending to a language model, and generating or validating schemas. The utilities on this page handle each of these tasks.
JSONPath queries
JSONPath is a query language for JSON, similar to XPath for XML. It lets you extract values from a JSON structure with a path expression. Examples: $.store.book[0].title gets the title of the first book. $.store.book[*].author gets the author field from every element. $.store.book[?(@.price < 10)].title filters books below a price.
JWT decoding
A JSON Web Token has three base64url-encoded sections separated by dots: header, payload, and signature. The decoder extracts the header and payload for inspection without verifying the signature. Useful for seeing what claims a token contains, when it expires, and what algorithm signed it.
Base64 encoding and decoding
Some APIs use Base64 to encode binary data or pass JSON in a URL-safe string. The encoder converts a JSON string to its Base64 representation. JSON Lab also supports base64url encoding, which uses - and _ instead of + and /.
Frequently asked questions
Q: Does the JWT decoder verify the signature?
A: No. It only decodes the header and payload for inspection. To verify the signature, use an appropriate JWT library.
Q: What is the difference between Base64 and base64url?
A: Base64url replaces + with - and / with _, making the output URL-safe without percent-encoding. JWTs use base64url.
Q: What is JSONSchema used for?
A: JSONSchema describes the structure of a JSON document. You can use it to validate that incoming data has the right shape before processing it.