jsonlkit.com
JSONL (JSON Lines) utilities, in the browser
Say hi →

Search & Replace in JSON / JSONL (Regex)

updated 16 May 2026

JSONL find and replace. String or regex replace across every record in a JSONL (JSON Lines) file. Scope to all keys or one key path, optional case-insensitive. Up to 1 GB, runs in your browser.

100% client-side. No upload.

Find & Replace

Drop a .jsonl file here, or

JSONL Find & Replace

Bulk find-and-replace across every record in a JSONL file. Replace inside all string values, in one key path only, or on the raw text line-by-line (handy for fixing escaped sequences or surgical sed-style edits). String or regex mode, optional case-insensitive, optional whole-word. 100% in-browser.

Three scopes, three use cases

All string values

Walks every record, descends into nested objects and arrays, and replaces inside any string value (keys are never touched). Use this for "rename every reference to old-domain.com with new-domain.com" across a whole dataset.

Specific key path

Restricts the search to one path (dotted, e.g. user.email or meta.tags.0). Useful when the same string appears in multiple fields but you only want to change one (e.g. update an internal ID without touching a user-visible display name).

Raw text (whole line)

Treats the file as plain text and applies the replacement to each line. Doesn't parse JSON, so it can edit keys, values, structure — anything. Use carefully: a careless raw replace can break JSON syntax.

Regex notes

Tips & common pitfalls

Before you start

Find & replace works across every record in a JSONL file. You choose the scope (all keys, or a specific key path) and the match style (literal string or regex).

How to use it

  1. Paste or drop your JSONL.
  2. Type the Find string and the Replace string.
  3. Pick the scope: All values or a specific key path like user.email.
  4. Optionally tick Regex (JS-flavoured) or Case-insensitive.
  5. Click Replace and download.

Examples

Tips & common pitfalls

Frequently asked questions

Does it work on keys, or only values?

Only values. To rename a key, use the jq query playground with .foo = .bar | del(.bar).

What regex flavour?

JavaScript regex. \d, \w, \b, character classes, capturing groups all work.

Related tools