How to use
- PATH string
Paste a PATH
- Item listsame colour = duplicate
List in order, flag
- Cleaned PATHfirst one is kept
Output without duplicates
Paste the output of echo %PATH%, PowerShell’s $env:Path or echo $PATH (one item per line also works). The samples show how it works.
In “List”, check the items in search order together with duplicates, empty items and relative paths.
In “Findings”, check the points specific to Windows and Unix: empty items, the current directory, quotes, surrounding whitespace and length.
In “Clean up”, copy or save the PATH without duplicates. Sorting can change which program runs, so it is off by default.
What it does
List with search order
Items higher up are searched first. A duplicate shows which item it repeats, making it clear that the later one is never reached.
Comparison rules per OS
On Windows, case, / versus \ and a trailing \ are ignored. On Unix, case matters and only a trailing / and repeated / are ignored.
Empty items and the current directory
On Unix an empty item means the current directory (POSIX). Empty items and . are highlighted, and relative paths are flagged.
Variables expanded only when you supply them
%VAR%, $VAR and ~ are expanded only with the values you enter under “Variable values”. The tool never reads your environment variables or the registry.
Output without duplicates
Keeps the first occurrence and joins with the original separator. You can also drop empty items or sort (with a warning).
Use cases
- Check whether the same directory is in PATH more than once
- See which directory is searched first when several programs share a name
- Check a Unix PATH for empty items (::) or .
- See how a Windows PATH looks with duplicates removed
Capability matrix
| Feature | Support | Notes |
|---|---|---|
| Auto-detecting or choosing Windows (;) and Unix (:) | Supported | — |
| Findings for duplicates, empty items, the current directory, relative paths, quotes and surrounding whitespace | Supported | — |
| Output of a PATH without duplicates (copy and save) | Supported | — |
| Expanding variables you provide | Partial | Only those entered under “Variable values”, expanded once; no nested expansion |
| Windows length findings | Partial | Only the 32,767-character maximum of an environment variable and 260 characters (MAX_PATH) per item; other limits are not covered |
| Checking that directories exist or hold executables | Not supported | A browser cannot inspect files on your machine |
| Reading the registry or current environment variables, or changing PATH | Not supported | — |
Limits & notes
- Input is limited to 200,000 characters and 5,000 items. Anything beyond is not read.
- A separator (; on Windows) inside a quoted item still splits the item.
- Duplicates are judged by the text as written, without resolving symbolic links or ... Different spellings of the same location are not detected.
- Windows case-insensitive comparison covers ordinary characters.
Privacy & safety
Pasted text is processed only inside your browser. Nothing is sent to or stored on a server, and nothing is saved in the browser. Usage analytics never include content.
FAQ
In what order is PATH searched?
Is it safe to remove duplicates from PATH?
What does an empty item (::) in a Unix PATH mean?
Should PATH contain . ?
Is there a length limit for PATH on Windows?
How are ~ and $HOME handled?
Related tools
.env Studio
Paste or drop a .env file to see its keys and values in a table, with duplicates, empty values and syntax problems flagged by line. Values are hidden by default. You can compare a .env with a .env.example, or export an example file, JSON or a Kubernetes Secret. It checks common dotenv syntax, not tool-specific rules such as docker compose variable expansion.
Systemd Unit Inspector
Paste a systemd unit file (.service, .timer or .socket) to see its settings by section, such as [Unit], [Service] and [Install], with the meaning of each setting. It flags with line numbers an ExecStart placed in [Unit], a program path that is not absolute, a service with no User that runs as root, and a missing WantedBy that prevents enable. You can also make a starter unit.
Regex Tester
Type a pattern and matches light up in the test string instantly. Capture groups, replacement output and what each part of the pattern means are all on one screen — and patterns that would freeze your browser are stopped after one second.
Apache Config Studio
Paste .htaccess, httpd.conf or a VirtualHost to see its section tree and line-numbered findings: unclosed sections, unknown directives and overly open settings. You can also generate HTTPS redirect, www and HSTS snippets.
Caddyfile Studio
Paste a Caddyfile to see its site blocks, snippets ((name) and import) and matchers (@name) as a tree, with line-numbered findings for unbalanced braces and undefined references. You can also make reverse proxy, static site, SPA and www redirect templates.
Hosts Studio
Paste a hosts file to see its IP and host name pairs in a table, with format errors, duplicates and changed localhost lines flagged by line number. It checks the syntax of hosts entries (IP, whitespace-separated names, # comments). It does not resolve names or write to your system. Save the output file and place it in the system hosts location with administrator rights.
Last updated: