Processed on your device
Back to tools
Developer · All tools

Regex Tester

Test JavaScript regular expressions and inspect matches, capture groups and character positions. Free regex tester online, with no installation or account.

Your files and input are processed in this browser. No uploads or accounts.

Tool capabilities

Input
TXT
Output
JSON · TXT

How to use Regex Tester

Test JavaScript regular expressions against sample text and inspect match offsets, numbered captures and named capture groups.

  1. Enter the pattern without surrounding slash delimiters.
  2. Choose flags such as g for all matches, i for case-insensitive matching or m for multiline anchors.
  3. Run the expression and inspect the JSON match list. Edit the pattern or text to test another case.

Regex Tester · Example

Input

Hello LocalKit. Small tools, useful results.

Output

{
  "matches": [
    {
      "text": "Hello",
      "index": 0,
      "captures": [],
      "groups": {}
    },
    {
      "text": "Small",
      "index": 16,
      "captures": [],
      "groups": {}
    }
  ],
  "displayLimit": 1000,
  "limitReached": false
}

Usage notes

Offsets count JavaScript UTF-16 code units. Unicode characters can occupy more than one code unit.

A two-second deadline terminates expensive patterns. At most 1,000 matches are displayed for inputs of up to 100,000 characters.

JavaScript regular expression syntax can differ from PCRE, Python and other regex engines.

Add or Subtract DaysMove a calendar date forward or backward.AES DecryptAuthenticate and decrypt a LocalKit AES-256-GCM JSON envelope with its password.AES EncryptEncrypt UTF-8 text with AES-256-GCM and a password-derived PBKDF2-SHA-256 key. Every run uses a fresh salt and nonce.Age CalculatorCalculate completed years, months and days between a birth date and a reference date.Anagram CheckerCompare letters and numbers after Unicode normalization, ignoring spacing and case.Angle ConverterConvert angle units with selectable source and target units and precise local results.Apache Config EditorEdit Apache Config source locally with syntax colors, line numbers, find and replace, undo, file import and download. Source is not executed.Archive Contents ViewerBrowse and search file paths inside ZIP, TAR and TGZ archives. Select files to download locally.

Language

Code examples, format names and technical parser messages may use their original notation.