JSON Formatter
Validate, prettify, minify or sort JSON keys with clear syntax errors.
Developer toolsTest JavaScript regular expressions in an isolated worker with a timeout and match details.
Adjust the example inputs, then select Test pattern.
Inspect how a JavaScript regular expression matches sample text. Patterns execute in a dedicated worker that is stopped after about half a second, keeping pathological patterns away from the page’s main thread. At most 1,000 matches are returned.
Enter a JavaScript pattern without surrounding slash delimiters.
Choose flags and add sample text; use g to find multiple matches.
Run the pattern and inspect match positions and capture groups.
The JavaScript regular-expression implementation provided by your browser. Unsupported flags or syntax produce an error. Match positions are UTF-16 code-unit indexes.
Some patterns take an extremely long time on certain text. The worker is terminated after about 500 milliseconds. Simplify nested repetition or reduce the sample size and try again.