PAC File Tester

PAC file

Paste it, or drag a file here. It is evaluated as you type.

Syntax and logic checks

All shExpMatch patterns

URLs to test

One per line. The host name is taken from the URL (lines starting with # are comments).

Evaluation settings

Used by dnsResolve, isInNet and isResolvable. Hosts not listed here can't be resolved. "*.example.com 10.0.0.1" applies to every host under that domain.

Date and time the script sees (for weekdayRange, dateRange and timeRange)

Settings are saved in this browser (separately from the PAC). "Sample" restores the sample settings.

Results

About this tool

PAC File Tester (yorozu-craft). This one HTML file is the whole tool, and it never connects to the network. The PAC you paste runs in a Worker inside a sandboxed iframe with a different origin from this page, so it can't touch this page's storage or any other site.

Guide and FAQ: https://yorozu-craft.com/pac-tester/en/guide.html (opens only if you click it)

Japanese version (日本語版): https://yorozu-craft.com/pac-tester/

Bundled library

This tool's code is under the MIT License. The full license text of the bundled library follows.