filemarkr
All ToolsGuides
filemarkr

60+ free developer tools that run entirely in your browser — JSON formatter, JWT decoder, Base64, diff checker, regex tester, hash generator and more. No upload, no sign-up, completely private.

JSON & Data

  • JSON Formatter
  • JSON Minifier
  • JSON Validator
  • JSON to CSV
  • CSV to JSON
  • JSON to YAML

Encode & Decode

  • Base64 Encode / Decode
  • Base64 to Image
  • Image to Base64
  • URL Encode / Decode
  • HTML Entity Encoder
  • JWT Decoder

Text Tools

  • Text Diff Checker
  • Case Converter
  • Word & Character Counter
  • Slug Generator
  • Remove Duplicate Lines
  • Sort Text Lines

Generators

  • UUID Generator
  • Password Generator
  • Lorem Ipsum Generator
  • QR Code Generator
  • Random Number Generator
  • NanoID Generator

Popular Guides

  • How to Format and Pretty-Print JSON (Without Breaking It)
  • How to Minify JSON and Shrink Your API Payloads
  • How to Validate JSON and Pinpoint the Exact Syntax Error
  • How to Convert JSON to CSV for Excel and Google Sheets
  • How to Convert CSV to JSON (With Proper Header Detection)
  • All guides →

Explore

  • All Tools
  • JSON Formatter
  • JWT Decoder
  • Diff Checker
  • UUID Generator

Company

  • About
  • Privacy
  • Terms
  • Sitemap

Our Promise

  • 100% in your browser
  • Zero uploads
  • No sign-up, always free

© 2026 filemarkr. Designed & developed by Naved Naik.  All processing happens locally in your browser.

All guides

Text Tools

How to Find and Replace Text with Regex (Without Firing Up an Editor)

Learn plain-text and regex find and replace, capture groups, backreferences, and case-insensitive matching in a fast, private, browser-based tool.

Try the toolFind and Replace →

The problem: small edits shouldn't need a whole IDE

You paste a log dump into a chat, and you need to strip every timestamp. You copy a list of 200 emails and need to wrap each one in quotes. You have a config blob where localhost:3000 should become api.example.com everywhere. Opening VS Code, creating a scratch file, and fumbling with its find widget is overkill. What you actually want is a text box, a search field, and a replace field — plus real regular expressions when the pattern gets tricky.

That's exactly what a browser-based Find and Replace tool is for. It runs entirely in your tab, so the text you paste never leaves your machine.

Plain text vs. regular expressions

Plain-text mode does a literal substring swap: every occurrence of the exact search string becomes the replacement. That covers most day-to-day edits. Regex mode unlocks pattern matching — character classes, quantifiers, anchors, and capture groups — for anything a literal string can't express.

A quick primer on the pieces you'll reach for most:

  • \d matches any digit, \w any word character, \s any whitespace.
  • + means "one or more", * means "zero or more", ? means "optional".
  • ^ and $ anchor to the start and end of a line (with the multiline flag).
  • Parentheses ( ) create a capture group you can refer back to in the replacement.

A practical walkthrough: reformatting dates

Say you have US-style dates and need ISO format. Your input looks like this:

Invoice 07/15/2026 paid
Invoice 12/31/2025 paid

Switch on regex mode and use a search pattern with three capture groups, then reference them in the replacement with $1, $2, and $3:

Find:    (\d{2})/(\d{2})/(\d{4})
Replace: $3-$1-$2

Result:
Invoice 2026-07-15 paid
Invoice 2025-12-31 paid

The pattern captures month, day, and year separately, and the replacement reorders them. This is a backreference — $1 is whatever the first set of parentheses matched. Some engines also accept named groups like (?<year>\d{4}), referenced as

lt;year>, which keeps complex patterns readable.

Case-insensitive and multiline matching

Flags change how the pattern is applied. The i flag ignores case, so error also matches Error and ERROR. The g flag (global) replaces every match rather than just the first — you almost always want this. The m (multiline) flag makes ^ and $ match at each line break instead of only the whole-text boundaries.

Common pitfalls

  • Forgetting to escape special characters. A literal dot, plus sign, or parenthesis has meaning in regex. To match a real period, write \. — otherwise . matches any character. If you have a lot of special characters, a Backslash Escape / Unescape tool can help you prepare the pattern.
  • Greedy quantifiers matching too much. In <.*> against <a><b>, the .* grabs everything up to the last >. Use the lazy version <.*?> to stop at the first.
  • Using $ literally in the replacement. Since $1 is a backreference, a literal dollar sign in your replacement should be written $.
  • Not testing first. For anything non-trivial, validate your pattern against sample input before trusting it on the full document. A dedicated Regex Tester shows you exactly what each group captures.

Conclusion

Find and replace is one of those tools that feels trivial until a regex-shaped problem lands on your desk. Plain-text mode handles the everyday swaps; regex mode with capture groups and backreferences handles the reformatting jobs that would otherwise mean writing a throwaway script. Because it all runs locally in your browser, you can paste sensitive logs or config without a second thought. Prototype the pattern, verify the output, and paste it back where it belongs.

More guides

How to Format and Pretty-Print JSON (Without Breaking It)

Read

How to Minify JSON and Shrink Your API Payloads

Read

How to Validate JSON and Pinpoint the Exact Syntax Error

Read

How to Convert JSON to CSV for Excel and Google Sheets

Read