Windows and WSL Path Converter
Convert file paths between Windows, WSL, Git Bash, Cygwin and UNC styles, and escape them for JSON, Bash or PowerShell.
- Free
- No sign-up
- Works on any device
About Windows and WSL Path Converter
The same file has several names depending on where you stand: C:/Users/Alex in Windows, /mnt/c/Users/Alex inside WSL, /c/Users/Alex in Git Bash and /cygdrive/c/Users/Alex in Cygwin. Paste one path per line, pick the style you need and optionally an escaping, and the page rewrites them all. Linux paths inside WSL map to wsl.localhost network paths in Windows, and network shares keep their UNC form. A table shows the first path in every style, including a version with doubled backslashes for JSON.
How to use Windows and WSL Path Converter
- Paste one or more paths, one per line; quotes around a path are removed.
- Choose the style to convert to and, if needed, how to escape the result for JSON, Bash or PowerShell.
- Copy the converted paths, or the style you need from the table of all forms.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
Why can a network share not be converted to a WSL path?
WSL does not mount UNC shares under /mnt by itself. You would first mount the share, for example with a drvfs mount, and then use the path of the mount point.
What is the WSL distribution name used for?
It is needed to build Windows paths that point into a Linux file system, such as wsl.localhost, then the distribution name, then the Linux path. The default is Ubuntu.
Does the page open or check my files?
No. It only rewrites text. It cannot tell whether a path exists, and nothing you paste leaves your browser.
Is Windows and WSL Path Converter free?
Yes. Windows and WSL Path Converter on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.