# Online PAC file tester

Source: https://findproxyforurl.net/check/ · last updated 2026-10-14

## Testing, troubleshooting or improving a PAC file?

Three pages answer the questions that come up most often around this tester:

- **How do I test a proxy.pac file?** [How to test a PAC file](https://findproxyforurl.net/articles/how-to-test-a-pac-file/)
  compares this tester, pactester and the browser itself.
- **Why does my PAC file not work?** [PAC file troubleshooting](https://findproxyforurl.net/articles/pac-file-troubleshooting/)
  goes through the symptoms one by one.
- **How do I optimize and improve a PAC file?** The [best practices](https://findproxyforurl.net/best-practices/) make it
  faster, safer and easier to maintain.

## The file passes here but fails in the browser or on Windows?

Then the client probably does not use the file, or uses another setting. These pages go through the
checks for each client:
[PAC file not working in Chrome or Edge](https://findproxyforurl.net/articles/pac-file-not-working-chrome-edge/),
[Proxy.pac ignored on Windows 11](https://findproxyforurl.net/articles/pac-file-ignored-windows-11/) and
[WPAD not working](https://findproxyforurl.net/articles/wpad-not-working/). How your file compares with real PAC files: [PAC file statistics](https://findproxyforurl.net/statistics/).

## What this PAC file tester checks

A PAC file (proxy.pac, or wpad.dat when it is found through [WPAD](https://findproxyforurl.net/wpad/)) is a small JavaScript
program. Browsers call its [`FindProxyForURL(url, host)`](https://findproxyforurl.net/findproxyforurl/) function for every
request and follow the string it returns: `DIRECT` or a list of proxies. A mistake rarely produces an
error message. Traffic just goes around the proxy, or pages wait for DNS lookups.

This tester answers two questions:

1. **Where does a URL go, and why?** Your URL is run with the client IP you enter in the engine
   profile you choose: [Chromium](https://findproxyforurl.net/engines/chromium/) (Chrome, Edge, Brave, Opera),
   [Firefox](https://findproxyforurl.net/engines/firefox/), [pacparser](https://findproxyforurl.net/engines/pacparser/) (the library behind `pactester`),
   or one of the two Windows profiles, [WinHTTP](https://findproxyforurl.net/engines/winhttp/) for Windows services and
   [WinINet](https://findproxyforurl.net/engines/wininet/) for desktop applications.
   Each profile runs that engine's own helper library and models its known differences, such as how
   much of an `https://` URL the script sees. The **live trace** in the "Path" tab of the editor
   area shows your file with the path marked on it: every `if` test with true or false, the calls
   such as `shExpMatch()` with their arguments and results, and the `return` that decided. When a
   URL goes the wrong way, this shows the line to fix. The "Annotated" tab shows the whole
   file with an explanation comment above each rule, without running it. The article
   [PAC file troubleshooting](https://findproxyforurl.net/articles/pac-file-troubleshooting/) goes through the usual causes.
2. **Is the file safe and maintainable?** The rating applies the [rule catalogue](https://findproxyforurl.net/rules/): missing
   default route, wildcard patterns that match attacker-controlled domains, DNS lookups that make
   requests wait, functions that do not exist in some engines, and more. For the rating, the file
   also runs with probe URLs generated from its domains (look-alike domains, query strings, IP
   literals), so problems show up even for URLs you did not think of. Each finding names the line
   and links to a fix. The [top 20 PAC mistakes](https://findproxyforurl.net/top-20/) are the most common.

You can also grade how the file is delivered (content type, caching, plain HTTP, WPAD) from the
output of `curl -sI`, set what DNS should return, and fix the date and time for
`dateRange()` / `timeRange()` rules.

Need a new file instead? The [PAC file generator](https://findproxyforurl.net/generate/) writes one that passes with A+.
How the checks and grades work is described in the [methodology](https://findproxyforurl.net/methodology/).


## Frequently asked questions

### How do I test a PAC file online?

Paste the file into the editor (or load it with "Load file…"), choose the engine profile and press Check. The file is rated, using probe URLs that the tester generates from the domains in your file. To see where a particular address goes, enter a domain or URL above the editor, and optionally the client IP that myIpAddress() should return. Check then also runs that URL through FindProxyForURL and shows the result and how the script got there, in the "Path" tab of the editor area. A domain alone is tested as https://.

### Can I see which rule in my PAC file matched a URL?

Yes. Enter the domain or URL above the editor and press Check. The "Path" tab of the editor area then shows your file with the path of the URL marked on it. Numbers give the order in which lines were reached, and each if test shows a tick for true or a cross for false. Under each line are the built-in calls it made, with their arguments and results, for example shExpMatch("www.example.com", "*.example.com") → true. The return that decided is highlighted with the result, and branches that were skipped are dimmed. The trace runs in your browser and is never sent anywhere.

### My PAC file works here but not in the browser or on Windows. What now?

Then the client probably does not use the file, or uses another setting. In Chrome and Edge, a policy or a proxy extension can replace the system settings; chrome://net-internals/#proxy shows what Chrome really uses. On Windows, services use the separate WinHTTP proxy setting and VPN connections have their own proxy settings. The pages PAC file not working in Chrome or Edge, Proxy.pac ignored on Windows 11 and WPAD not working go through the checks.

### Can the tester explain what my PAC file does?

Yes. Open the "Annotated" tab above the editor. It shows your file with an explanation comment above each rule, for example "If the host name ends with .corp.example -> DIRECT", read from the code without running it. The first comment lists every answer the file can give, with the fallback order of the proxies. Helper functions are explained where they are defined and where they are used. You can copy or download the annotated file, or put it into the editor; annotating again replaces the old comments.

### Is my PAC file uploaded?

No. Your file never leaves your browser. For the rating, only its logical shape is sent - no names, no addresses from your network, no text. The file itself runs in a sandboxed worker in your browser, and the trace, the basic checks and the path view use it there unchanged. The logical shape is a description of how the file decides, with every name, address and piece of text replaced by what kind of thing it is. A host test becomes, for example, "ends with a domain of 3 labels", and an address becomes "a private network /16". Every check gets the short report back. "Show all findings" first asks whether the shape may be kept. If you agree, it is kept for 730 days for anonymous statistics about how PAC files are built, and you see every finding with its line and a fix.

### How is this different from pactester?

pactester is the command-line tool of the pacparser library and answers for one engine. Browsers differ from it and from each other, for example in which part of an https:// URL the script sees and in what happens when the script throws. This tester lets you pick one of five profiles (Chromium, Firefox, pacparser, Windows WinHTTP and Windows WinINet), each with that engine's own helper library and known differences, shows the path of a URL through the file, and also rates the file for security, correctness and performance problems.

### Can I just view or edit a .pac file here?

Yes. A PAC file is plain JavaScript text. Open it with "Load file…" or paste it, and the editor shows it with line numbers; edit it and press Check again to test the change. Nothing is saved on the server.

### What do the grades A+ to F mean?

The grade summarises the findings across six categories, from errors and security to performance and best practice. Serious findings limit the grade however good the rest of the file is. A+ needs zero warnings and a commented default route. Every finding links to its rule page with an explanation and a fix.

