Skip to content
Developer & CodeLocal · Stays on device

Regex Tester

Test JavaScript regular expressions with live match highlighting, capture groups and replace preview.

Launch Regex Tester
  • JavaScript (ECMAScript) regex
  • Free to use
  • No sign-up or watermark
regex-testerOn this device
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10
JavaScript (ECMAScript) regex
Open Regex Tester

About this tool

Write a pattern, toggle flags (g, i, m, s, u, y) and see every match highlighted in your test text, with a table of capture groups and named groups. A replacement field previews the result of String.replace, including $1 and $<name> references.

Patterns run in a background thread with a time limit, so a runaway expression (catastrophic backtracking) is stopped instead of freezing your browser. Everything runs in your browser. Your data is never uploaded, logged or stored.

  1. Input

    Your code or text

    JavaScript (ECMAScript) regex

  2. Processing

    Processed in this browser

    Background thread. Nothing is uploaded.

  3. Output

    Your result

    Ready to download or copy

Local processing pipelineBackground thread

How to use it

  1. 1

    Enter a regular expression and choose flags.

  2. 2

    Paste the text to test against.

  3. 3

    Inspect highlighted matches and groups, and try a replacement.

Zero-upload architecture

How to use Regex Tester for free, with no upload

Free, with no sign-up or watermark · Your files stay on your device

  1. 1

    Open Regex Tester

    Launch the app and add your file. There is nothing to install and no account to create.

  2. 2

    Work through it

    Paste the text to test against.

  3. 3

    Get your result

    Inspect highlighted matches and groups, and try a replacement.

  • Local

    Text Cleaner

    Remove extra spaces, empty lines, HTML tags, smart quotes and invisible characters in one click.

    Open tool
  • Local

    JSON Formatter

    Pretty-print, beautify and validate JSON with precise error locations, key sorting and custom indentation.

    Open tool
  • Local

    URL Encoder Decoder

    Percent-encode text for URLs, query strings or forms, or decode encoded links with a breakdown of every parameter.

    Open tool
  • Local

    Regex Explainer

    Paste a regular expression and see every token, group, quantifier and flag explained in plain English, with syntax from other engines flagged.

    Open tool