JSON Search & Replace
Compare & SearchFind any key, value, or path in your JSON — and replace across the document.
Search and replace inside JSON
This tool finds any key, value, or fragment of text in a JSON document and lets you replace matched text across the whole thing in a single pass. A live match count and a list of every hit show you every place a field name, an ID, or a secret is referenced before you change it.
Regex search for power users
For anything beyond a literal string, switch on regex mode to search with full regular expressions, and reuse what each match captured in the replacement: $1, $2, and so on for groups, $& for the whole match, and $$ for a literal dollar sign. That makes bulk edits a one-step operation — rename a field everywhere it appears, rewrite every http:// URL to https://, or flip dates from 2026-10-29 to 29/10/2026 by finding (\d{4})-(\d{2})-(\d{2}) and replacing it with $3/$2/$1. In plain-text mode the replacement is inserted exactly as you type it. Nothing is written back to a file; you copy or download the result once it looks right.
Search and replace across large JSON online
When a value or key appears dozens of times across a big document, editing each by hand is error-prone. Search JSON online for any key, value, or fragment of text, review every match with a live count, then replace across the whole document in one pass — with plain text or a full regular expression. Everything happens locally, so even large payloads stay private and fast.
Narrow matches with case and whole-word options
A text search over a big document turns up more than you want. Toggle Match case when you need to tell id apart from ID, or status from Status, so a rename lands only on the field you actually mean. Toggle Whole word to match a term only where it stands on its own — searching name that way skips username, firstName, and filename, so you are not undoing collateral hits by hand afterward.
Both options stack with plain-text or regex mode, and the match count updates live as you flip them, so you can dial in the exact set of hits before touching the replacement.
Find and replace on JSON that will not parse
Because the search runs over the document text rather than a parsed tree, it does not need valid JSON to work. Paste a truncated API log, a file with a trailing comma, or minified output crammed onto a single line, and you can still find every occurrence of a token and swap it — no invalid-JSON wall stops you first. That makes it a fast way to fix a mistyped key or strip a bad value, then hand the cleaned text to a collapsible JSON viewer to confirm it finally parses.
Everything runs locally, so a broken export full of credentials or customer data never leaves your machine on its way to being fixed.
Verify a replace before you keep it
Replace all rewrites the document in the editor, but your original file is never touched — the result only leaves the editor when you copy or download it, so treat it as a draft. Scan the match list first: every hit shows its line and column plus the source line it sits on, which is usually enough to catch a false positive before you commit to the change.
When an edit is large or touches values you care about, copy your original out beforehand, then drop the before and after text into the JSON diff checker to see exactly which values changed and that nothing slipped through unnoticed.
Text search versus structured path queries
This tool searches the document as text, which is exactly right for find and replace: it matches a string wherever it appears — in a key, a value, or a path-like fragment — and can rewrite all of them in one pass. When you instead need to pull data by its position in the structure, such as every price under items or the last element of an array, reach for a JSONPath expression, which walks the parsed tree instead of the raw text.
The two are complementary: locate and edit strings here, and extract values by their path there. The guide to comparing and searching JSON files walks through both jobs, plus diffing, with real-world examples.
Everything in the JSON Search & Replace
Search JSON by key, value, or path and replace text across the whole document. Supports plain text and regular expressions. Runs entirely in your browser.
Search everything
Match any key, value, or fragment of text.
Regex support
Regular expressions, with $1 and $2 capture groups in replacements.
Replace all
Swap matched text across the whole document.
Match list
Every hit with its line, column, and a live count.
Frequently asked questions
Yes. Toggle regex mode to search with full regular expressions, and combine it with Match case or Whole word. In regex mode the replacement can reuse what each match captured: $1, $2 and so on for groups, $& for the whole match, and $$ for a literal dollar sign. In plain-text mode the replacement is inserted exactly as you type it.
No file is ever touched. The tool works on the text in the editor; you copy or download the result yourself once you are happy with it.
By key or value, yes. Search runs over the document text, so it matches any key, value, or fragment wherever it appears, and the match list shows every hit with its line and column before you replace anything. To pull values by their position in the structure instead, use the JSONPath Tester.
No. Every operation runs entirely in your browser using client-side JavaScript. Your JSON is never uploaded, logged, or stored on any server — it never leaves your device.
Yes, completely free with no sign-up required. There are no usage limits, no watermarks, and no premium gate on any feature.
Related tools
JSONPath Tester
Write a JSONPath expression and see exactly which values it matches.
JSON Viewer
View JSON data and objects online — syntax highlighting, collapsible nodes, free and private.
JSON Formatter
Beautify, minify, and repair messy JSON — even Python dicts and JS objects — into clean, valid output.
JSON File Viewer
Drag, drop, and read any JSON file — plus CSV, Excel, and ZIP — instantly in your browser.