JSON Formatter
Validate, format, and minify JSON with indentation and optional key sorting.
Open tool100% Client-Side • Zero Server Uploads
Test JavaScript regular expressions with safe highlighting, capture groups, and replacement previews.
Test JavaScript regular expressions safely in your browser. The Regex Tester runs patterns in a Web Worker with a hard timeout, so a poorly constructed expression cannot freeze your page. See matches, capture groups, and replacement previews instantly — no data is sent to a server.
Pattern is limited to 1,000 characters.
Match summary
0 matches found.
Contact us at support@localtoollab.com or sales@localtoollab.com.
Replacements appear here after a match is found.
Type a JavaScript regular expression pattern. The pattern is capped at 1,000 characters.
Toggle global, case-insensitive, multiline, dotAll, unicode, sticky, and has-indices flags as needed.
Paste the text you want to test against. Input is capped at 20,000 characters.
See all matches, their positions, capture groups, and a replacement preview.
Copy matches with indices and capture groups for test cases or bug reports.
Patterns run in a Web Worker with a 300 ms timeout. A catastrophic expression is terminated before it can freeze the page.
Matches are highlighted using React nodes, never innerHTML, so there is no injection risk.
All regex processing happens in your browser. No input is transmitted or stored.
A 300 ms main-thread timeout terminates the worker so a pathological pattern cannot freeze the tab.
Test whether a pattern matches email addresses, URLs, phone numbers, or other structured input.
Inspect which parts of your input match each capture group in your pattern.
See how a replace operation will transform your text before applying it in code.
Keep working in your browser with another tool from the same category.
Validate, format, and minify JSON with indentation and optional key sorting.
Open toolInspect JWT headers and payloads locally without verifying signatures or sending tokens anywhere.
Open toolEncode and decode Unicode text or files to Base64 and Base64URL locally.
Open tool