Skip to content
QKQuickKit日本語
WindowsLOCALRuns in your browserInput may contain sensitive information

Windows ⇄ WSL Path

Convert absolute Windows drive paths and their default WSL /mnt equivalents.

This tool handles input and primary processing in your browser and is designed not to send the input to QuickKit’s server.

Avoid live production secrets; use dummy or masked data where possible. Data handling details

Converted path

How it works

Converts absolute drive paths such as `C:\work` and default WSL `/mnt/c/work` paths. The conversion is lexical only: it matches selected drive-path rules and test vectors from wslpath (`C:\` becomes `/mnt/c/`, both `/mnt/c` and `/mnt/c/` become `C:\`, a trailing separator is kept), but unlike the default wslpath behavior it does not access the filesystem or resolve symlinks, so `/mnt/c/a/link` is always `C:\a\link` even when it is a symlink to somewhere else. The input is used exactly as typed; whitespace is never trimmed; a file or folder name that begins or ends with an ASCII space (U+0020) is flagged, because Windows saves such a name without that space while keeping other whitespace. Control characters (U+0000–U+001F) and the characters `"` `*` `:` `<` `>` `?` `\` `|` inside a file or folder name are rejected in both directions: Windows reserves them in names, and WSL/DrvFs represents them with private-use escaping, which this tool does not model. `C:` or `C:file.txt` without a separator after the colon is drive-relative (the current directory on that drive), not the drive root, so it is reported rather than converted. UNC and `\\?\` paths are not converted because their WSL mount point is configuration-dependent. Relative paths, paths with `.` or `..`, and non-WSL Linux paths are rejected deliberately so the result is unambiguous.