NoSQL Validator
Validate a JSON document against a JSON Schema or MongoDB $jsonSchema
Load a matched document + schema, or paste your own.
Document
Schema (JSON Schema / $jsonSchema)
ResultVALID
Examples
Validate a user document
{ "name": "Ada", "age": 36 } against a schema requiring name (string) and age (int, min 0)VALID — both required fields are present and correctly typed.Load the sample to see a document and a MongoDB $jsonSchema validator checked field by field.
Catch a wrong type
{ "age": "thirty-six" } against { age: { bsonType: "int" } }age — Expected type int, got string.The validator points at the exact field path so you can fix the document or the schema.
About this tool
Document stores such as MongoDB can enforce a shape at write time with a validator built from JSON Schema, or MongoDB's $jsonSchema. Authoring that schema by hand is error-prone, and a single wrong keyword silently lets bad data in.
Paste a document and a schema and the validator checks every node: the expected type (including BSON aliases like int and bool), required properties, additionalProperties:false, array items, enum membership, string minLength/maxLength and pattern, and numeric minimum/maximum. Each failure points at the exact field path. It supports a practical subset of draft-07 plus MongoDB bsonType and the $jsonSchema wrapper.
How to use
Paste the document
Enter the JSON document you want to validate on the left.
Paste the schema
Enter a JSON Schema, optionally wrapped in { "$jsonSchema": { ... } }, on the right.
Read the result
A VALID badge means it matches; otherwise each error names the offending field path and why.
Iterate
Fix the document or correct the schema and the result updates live.
Common mistakes
Mistake:Forgetting required.
Fix:Listing a property in properties does not make it required — add its name to the required array.
Mistake:Using 'number' when MongoDB wants 'int'.
Fix:Use bsonType (e.g. 'int', 'long', 'double') for MongoDB validators; this tool understands both.
Frequently asked questions
Related guides
Two SQL Reviews Every Query Should Pass
A security review and a performance review for SQL. Catch injection signatures before production, then strip the anti-patterns that make a query slow — without needing a live database.
Validate MongoDB Documents With $jsonSchema
Stop bad documents at the door. Build a JSON Schema or MongoDB $jsonSchema visually, validate documents against it, and apply it as a collection validator — all in your browser.
References & standards
Related tools
Lighthouse Audit Summary
Summarize a Lighthouse report into prioritized actions. Enter category scores or paste Lighthouse JSON to get grades, weakest areas, and a ranked improvement checklist.
SSL Chain Analyzer
Paste a PEM certificate bundle and verify the chain order — find missing intermediates, broken links, expired or not-yet-valid certificates, self-signed roots, and duplicates. All in-browser.
SQL Injection Detector
Scan an input string or query for SQL injection signatures — tautologies, UNION SELECT, stacked queries, time-based blind, comments, and destructive statements — with a risk score and classification.
JSON Schema Builder
Build a JSON Schema or MongoDB $jsonSchema validator visually — add properties, pick types, mark required, set patterns and ranges — with live output and a test document.
SQL Performance Analyzer
Paste a SQL query to find performance anti-patterns — SELECT *, leading-wildcard LIKE, missing WHERE, cross joins, NOT IN, functions on columns — with a score and ranked fixes.
Redis CLI Simulator
Practice Redis commands in an in-browser terminal. Run GET, SET, HSET, LPUSH, SADD, ZADD, EXPIRE, KEYS and more against a local store — no Redis server required.