← All tools JSON

JSON Search

Find any key or value buried deep in your JSON data. See the full path to every match with highlighted results. Everything runs in your browser — nothing is sent to a server.

Why You Need a JSON Search Tool

Modern APIs return deeply nested JSON responses that can span hundreds or thousands of lines. Finding a specific field — say a user ID buried three levels deep inside an array of objects — is painful with manual scrolling or a basic text search in your editor. A dedicated JSON search tool parses the structure, walks every node recursively, and shows you the exact path to each match.

Whether you are debugging an API response, exploring a configuration file, or auditing data, knowing the path to a value saves significant time. Instead of collapsing and expanding nodes in a tree viewer, you get a flat list of every occurrence with full context.

Search Modes Explained

K Keys
  • • Searches property names
  • • Find where a field exists
  • • Useful for schema exploration
V Values
  • • Searches data content
  • • Locate specific data points
  • • Find strings, numbers, booleans
* Both
  • • Searches keys and values
  • • Broadest coverage
  • • Best for general lookups

Using Regex for Advanced Searches

Enable the Regex toggle to use full JavaScript regular expression syntax. This unlocks powerful pattern matching that plain text search cannot provide. Here are some practical examples:

^id$ — exact key match for "id"
_at$ — keys ending in "_at" (created_at, updated_at)
[0-9]{4}-[0-9]{2} — date-like values (2025-01)
https?:// — find all URL values

Understanding JSON Paths

Every result in this tool includes a path that tells you exactly where the match lives inside the JSON structure. The path uses dot notation for object properties and bracket notation for array indices.

Path: store.departments[0].products[1].name
Path: metadata.lastUpdated
Path: users[3].address.zip

These paths can be used directly in JavaScript with lodash's _.get(), or translated into JSONPath or jq expressions for use in other tools and scripting languages.

Tips for Efficient JSON Searching

  1. 1

    Start broad, then narrow. Use "Both" mode first to understand where your term appears, then switch to "Keys" or "Values" to filter the results.

  2. 2

    Use case-sensitive mode for precision. When searching for "ID" versus "id", toggle case sensitivity on to avoid false positives.

  3. 3

    Copy all paths for scripting. Use the "Copy all paths" button to export every matching path, then paste them into your code or a spreadsheet for further processing.

  4. 4

    Regex anchors prevent partial matches. Searching for "id" also matches "hidden" and "video". Use ^id$ in regex mode for exact matches.

  5. 5

    Validate your JSON first. If the tool shows a parse error, use a JSON formatter or validator to fix syntax issues before searching.

Frequently Asked Questions

How do I search for a specific key in a large JSON file?

Paste your JSON into the input area, type the key name in the search field, and select "Keys" as the search mode. The tool recursively scans every level of your JSON structure and returns every occurrence along with the full dot-notation path.

Can I use regular expressions to search JSON?

Yes. Enable the Regex toggle and enter any valid JavaScript regular expression. For example, use ^price to match keys starting with "price", or [0-9]{4} to find four-digit numbers. Both case-sensitive and case-insensitive modes are supported.

What is a JSON path and how do I read it?

A JSON path describes the location of a value using dot notation for object keys and bracket notation for array indices. For example, store.departments[0].products[1].name means: go into "store", then the first element of "departments", then the second element of "products", and read the "name" property.

Does this tool send my JSON data to a server?

No. Everything runs entirely in your browser using JavaScript. Your data never leaves your device, so you can safely use it with sensitive or proprietary information without any privacy concerns.

What is the difference between searching keys and values?

Keys are the property names on the left side of the colon (like "name", "id", "price"). Values are the data on the right side (like "Laptop", 42, true). Searching keys helps you find where a property exists, while searching values locates specific data points. Use "Both" for the broadest search.

Related Tools