OS Utility • Free • Browser Based

Windows ↔ WSL Path Converter

Convert Windows file paths to WSL format—or turn Linux paths back into Windows paths—without manually changing slashes and drive mounts.

Used for Linux paths outside /mnt/.
Enter a Windows or WSL path. Auto detect will choose the direction.

Try an example

What does the Windows to WSL Path Converter do?

Windows and the Windows Subsystem for Linux use different path formats. Windows normally uses a drive letter and backslashes, such as C:\Users\Rohit\project. WSL exposes that drive under /mnt/c/Users/Rohit/project. This tool performs that conversion instantly and can reverse it when you need to paste a WSL path into File Explorer, PowerShell, VS Code or another Windows app.

It also recognizes Windows network-style paths for WSL distributions, including \\wsl$\Ubuntu\home\user and \\wsl.localhost\Ubuntu\home\user. Everything runs locally in your browser; no account, installation or file upload is required.

How to convert a path

  1. Paste a Windows or WSL path into the input box.
  2. Keep Auto detect, or choose the direction manually.
  3. Set the distribution name for a Linux-only path such as /home/user.
  4. Select Convert Path, then copy the result.

Common conversion examples

  • C:\code\app/mnt/c/code/app
  • D:\My Files\report.txt"/mnt/d/My Files/report.txt"
  • /mnt/c/Users/NameC:\Users\Name
  • /home/name/app\\wsl.localhost\Ubuntu\home\name\app

Important path notes

The drive conversion assumes WSL's normal automount location: Windows drives appear below /mnt. If you changed the automount root in /etc/wsl.conf, adjust the result. A general UNC share such as \\server\share is not automatically a mounted WSL folder, so this tool will not invent a potentially incorrect mount path.

Quotes are useful when a path containing spaces is pasted into a shell command. Some applications expect the raw path without quotes; switch the quote option off in that case.

Frequently asked questions

Can I use this with VS Code and the WSL terminal?

Yes. It is useful when moving paths between File Explorer, PowerShell, Command Prompt, a WSL shell and VS Code Remote - WSL.

Why does the C drive become /mnt/c?

By default, WSL mounts fixed Windows drives beneath /mnt and uses the lowercase drive letter as the folder name.

Does this tool check whether a file exists?

No. It converts path syntax only. The browser does not receive access to files on your computer.

Are entered paths private?

Yes. The conversion logic runs inside your browser and does not send the entered path to a conversion server.