JSON Formatter
JSON Formatter for developers — instant, offline-style and privacy-safe.
Test a regular expression against your text live — see every match highlighted and counted — right in your browser. It uses the JavaScript regex engine, not PCRE.
Your browser is preparing the tool. It runs 100% locally.
Enter a regular expression, choose flags, and type a test string — the tool highlights every match and shows how many there are, updating as you type. An invalid pattern shows the error. It uses the browser's JavaScript (ECMAScript) regex engine, so most patterns behave as expected, but advanced syntax can differ from PCRE, Python or .NET. Everything runs in your browser; nothing is uploaded.
This tool lets you build and check a regular expression interactively. You type the pattern and flags and a sample of text, and it marks every part of the text the pattern matches, with a running count of matches.
It is the quick way to develop a regex — to confirm it catches what you intend and nothing more — without dropping it into code and running it. Live highlighting makes it obvious where the pattern hits and misses.
The tool compiles your pattern and flags into a regular expression using the browser's built-in engine, then runs it against the test string. Each match is wrapped in a highlight, and the total is counted. If the pattern is not valid, the engine's error message is shown instead.
Because it uses the browser, the flavour is ECMAScript — the same regex your JavaScript code would run. Flags control behaviour: g matches all occurrences, i ignores case, m makes the anchors work per line, s lets the dot match newlines, u enables full Unicode, and y anchors matching to a position.
g match all occurrences (not just the first)
i ignore case m ^ and $ match per line
s dot matches newlines u full Unicode y sticky (match at a fixed position)pattern \b\w+@\w+\.\w+\b on text with two email addresses → 2 matches highlightedThis is the ECMAScript flavour. A pattern that works here matches the same way in JavaScript, but may differ in PCRE, Python or .NET if it uses advanced features.
Your pattern and test text stay on your device. The matching runs in your browser with no network request, so nothing is uploaded.
Because the work is local, you can test a pattern against real log lines or sample data without it being stored or sent anywhere.
Nothing persists between sessions — close the tab and the pattern and text are gone.
The matching is exactly what the browser's regex engine does, so what you see here is what your JavaScript code will produce — there is no approximation in the matching itself.
The flavour is ECMAScript, not PCRE. If your pattern targets PHP, Python, .NET or a database, test it there too: named groups, lookbehind width, and several advanced constructs differ, and a pattern that works here can behave differently elsewhere.
Without the global flag, a regex matches only the first occurrence in code, though this tool highlights all of them for visibility. Keep the g flag in mind when you copy the pattern into your own code, where it changes how methods like match behave.
A complex or poorly written pattern can be slow on large inputs, and certain patterns can backtrack badly (catastrophic backtracking). The tool runs in your browser, so an extreme pattern on a big string may briefly hang the tab.
Develop and refine a regex with instant visual feedback.
See exactly what a pattern catches and what it misses.
Check a pattern for emails, codes or IDs against samples.
Experiment with syntax and flags and watch the effect live.
If your regex runs in PHP, Python or .NET, test it in that engine too, since advanced syntax differs. For find-and-replace rather than just matching, use a tool or editor with a replace field. For very large inputs, run the pattern in your code with proper safeguards.
Runs your pattern with the browser's JavaScript (ECMAScript) regex engine and highlights matches as you type; honest that advanced syntax differs from PCRE, Python and other flavours.
JSON Formatter for developers — instant, offline-style and privacy-safe.
JSON Validator for developers — instant, offline-style and privacy-safe.
Base64 Encoder for developers — instant, offline-style and privacy-safe.
Fast, free Hash Generator that runs entirely client-side in your browser.
Fast, free UUID Generator that runs entirely client-side in your browser.
Fast, free CSS Minifier that runs entirely client-side in your browser.
It is free, private and runs entirely in your browser — no sign-up, no uploads, no limits.