Home → Search JSON Online

Search JSON Online

Search through any JSON object to find keys, values, or paths instantly.

About This Tool

Search through any JSON object to find keys, values, or paths instantly. This tool runs entirely in your browser — no data is ever sent to a server. Free to use, no account required.

How JSON Search Works

The JSON search tool scans all keys and values in a JSON document recursively, returning every match with its full path.

Searching Keys

Find all instances of a specific key name anywhere in a nested JSON structure. Useful for locating fields in large API responses where the structure is not fully known.

Searching Values

Search for a specific value — a string, number, or boolean — across all fields. The tool returns every path where that value appears, making it easy to find where a specific value is used throughout the document.

When to Use JSON Search

JSON search is particularly useful when working with large or unfamiliar JSON documents.

Exploring Third-Party API Responses

Large API responses from services like Salesforce, Shopify, or GitHub can contain hundreds of fields. Search helps you quickly locate the data you need without manually scanning the entire document.

Auditing JSON for Sensitive Data

Search for patterns like "password", "token", "key", or "secret" to find potentially sensitive fields before sharing JSON data in a ticket, chat message, or public repository.

Frequently Asked Questions

Can JSON search find values inside nested arrays and objects?+
Yes. The search scans the entire JSON document recursively, including all nested objects and arrays at any depth. Every occurrence of the search term is returned with its full JSON path, so you know exactly where in the structure each match was found.
Is the search case-sensitive?+
By default, the search is case-insensitive, so searching for 'name' will match 'name', 'Name', and 'NAME'. You can switch to case-sensitive mode if you need an exact match.
Can I use regular expressions in JSON search?+
Yes. Toggle the regex option to use a regular expression pattern. This allows you to search for patterns like all email-format values, all ISO date strings, or all keys ending in '_id'. Standard JavaScript regex syntax is supported.
Is there a size limit for JSON search?+
The search runs entirely in your browser, so the practical limit is your device's available memory. The tool handles typical API responses and configuration files (up to a few MB) without issues.

JSON Search and Filter Techniques

Searching large JSON documents is a common task when debugging APIs, auditing configurations, or processing data exports. Different query methods work best for different scenarios.

Key-Value Search Examples

// JSON Document
{
  "users": [
    {"id": 1, "name": "Alice", "role": "admin"},
    {"id": 2, "name": "Bob",   "role": "user"},
    {"id": 3, "name": "Carol", "role": "admin"}
  ]
}

// Find all admins (JSONPath)
$.users[?(@.role == "admin")]
// Result: [{id:1,name:"Alice",...}, {id:3,name:"Carol",...}]

// Find by key name (all "name" fields)
$..name
// Result: ["Alice", "Bob", "Carol"]

// Find by value
$..* (then filter where value === "admin")

Search Methods Comparison

MethodDescriptionBest For
Key name searchFind all keys matching a nameSimple text match
Value searchFind keys with a specific valueSimple text match
JSONPath queryStructured path expressionMost powerful, RFC 9535
jq filterjq language queryBest for CLI pipelines
Regex on textSearch raw JSON textFast but error-prone

JavaScript: Filter JSON Array

const users = [
  {id: 1, name: "Alice", role: "admin"},
  {id: 2, name: "Bob",   role: "user"},
  {id: 3, name: "Carol", role: "admin"}
];

// Find admins
const admins = users.filter(u => u.role === "admin");

// Find by partial name
const matches = users.filter(u => u.name.toLowerCase().includes("a"));

// Deep search for any key
function deepSearch(obj, key) {
  if (key in obj) return obj[key];
  for (const v of Object.values(obj)) {
    if (typeof v === "object") {
      const found = deepSearch(v, key);
      if (found !== undefined) return found;
    }
  }
}

Explore more tools: All JSON Tools | Validator | Pretty Print | JSON Diff

How JSON Search Works

JSON Search traverses the entire document tree recursively and matches nodes based on the selected mode. All results are returned with their full JSONPath so you can locate them instantly, regardless of how deeply nested they are.

Key Search

Finds all properties whose key name matches the query at any nesting depth. Useful when you know a field name but not where it appears in a large document.

Value Search

Finds all string, number, and boolean values matching the query. Useful for locating a specific user ID, email address, or status code scattered across a deeply nested structure.

Key + Value Search

Finds properties where both the key name and the value match. Use this to narrow results when the value alone is too common.

// Document
{"users": [{"id":1,"email":"alice@example.com"},{"id":2,"email":"bob@example.com"}]}

// Search for key "email":
//   → ["alice@example.com", "bob@example.com"]
//   → paths: $.users[0].email, $.users[1].email

// Search for value "alice":
//   → "alice@example.com" at path $.users[0].email

// Regex search /^alice/:
//   → "alice@example.com" at path $.users[0].email

JSON Search vs JSONPath

JSON Search and JSONPath serve different purposes. Use JSON Search when you are exploring an unfamiliar document. Use JSONPath when you know the exact structure and need precise, repeatable extraction in code.

Feature JSON Search JSONPath
SyntaxPlain text or regexJSONPath expression
Learning curveNoneModerate
Multiple matchesYes, alwaysYes, with wildcards
Exact path neededNoYes (or use ..)
Best forExploring unknown JSONPrecise data extraction