← All tools

URLPattern Tester: Base URL, Groups & JavaScript

Test native URLPattern routes locally with a base URL, case options, per-line errors and capture groups. Export JSON and matching JavaScript without requesting URLs.

url-pattern-testerLOCAL WORKSPACE

Enabling local controls…

Inputs and settings

Processed in this tab without uploading or storing inputs. Each text field is limited to 32 KiB and complete output to 1 MiB; additional format and model limits apply.

Results

Review the settings and run. Editing inputs clears old results.

Processing model and limits

Use native URLPattern locally; no URL is requested. An explicit HTTP(S) base resolves relative test URLs in every mode and relative full patterns; it does not constrain hostname/pathname-only patterns. Case-sensitive by default. Invalid rows retain source line numbers and do not count as misses. Pattern or base errors stop the batch. Report and standalone JavaScript share settings; absent captures use {type: "undefined"} in JSON. Inspect both exports for secrets. Missing native API is an explicit error, never an approximate fallback. 2 KiB pattern / 200 URLs / 32 KiB input / 1 MiB combined output.

Data and model checked: WHATWG URLPattern ↗Source tool controls ↗

How to use this tool

Load the example, confirm field units and processing rules, then run locally. Editing any input clears the old result. Copy or download the complete output explicitly.

When not to use it

Use native URLPattern locally; no URL is requested. An explicit HTTP(S) base resolves relative test URLs in every mode and relative full patterns; it does not constrain hostname/pathname-only patterns. Case-sensitive by default. Invalid rows retain source line numbers and do not count as misses. Pattern or base errors stop the batch. Report and standalone JavaScript share settings; absent captures use {type: "undefined"} in JSON. Inspect both exports for secrets. Missing native API is an explicit error, never an approximate fallback. 2 KiB pattern / 200 URLs / 32 KiB input / 1 MiB combined output.