Cette page n’est pas encore traduite en français : elle s’affiche en anglais.

Windows Path Converter — Windows ↔ WSL ↔ Unix

Paste a path in any format — C:\Users\me\project, /mnt/c/Users/me/project, /c/Users/me — and get it in every other form, ready to copy: WSL, Git Bash, Cygwin, file URL, UNC and escaped for code.

Mis à jour le

Vos données ne quittent jamais votre ordinateur. Tout le traitement se fait localement dans votre navigateur.

Comment utiliser : Windows Path Converter

  1. Paste a path in any format — the format is detected automatically.
  2. Read the path in every other format.
  3. Copy the one you need; paste several lines to convert them all.

One file, many spellings

  • Windows — C:\Users\me\file.txt, backslashes and a drive letter.
  • WSL — Windows drives are mounted under /mnt: /mnt/c/Users/me/file.txt. Inside WSL, wslpath does the same conversion.
  • Git Bash / MSYS2 — /c/Users/me/file.txt.
  • Cygwin — /cygdrive/c/Users/me/file.txt.
  • file URL — file:///C:/Users/me/file.txt, with spaces encoded as %20.
  • Escaped — backslashes doubled for JSON, C#, Java and JavaScript strings (C:\\Users\\me), or a Python raw string r"C:\Users\me".

Spaces and special characters

Paths with spaces need quotes in shells — cd "/mnt/c/Program Files" — or escaped spaces (Program\ Files) in Bash. The converter shows a quoted version ready for the terminal.

Network shares

UNC paths such as \\server\share\folder become //server/share/folder with forward slashes and file://server/share/folder as a URL. WSL doesn’t mount network shares automatically; map the share to a drive letter or mount it with mount -t drvfs.

Aussi recherché comme : windows path to linux path, convert windows path to wsl, wsl path converter, git bash path, backslash to forward slash, unc path converter, file url converter, escape windows path.

Outils complémentaires : Windows Path Converter

  • Line Ending Converter — See which line endings a file uses and convert them — Windows CRLF to Unix LF or back — for pasted text or a whole batch of files, with trailing-space and tab cleanup on the side.
  • URL Encode / Decode — Percent-encode text for safe use in URLs, decode encoded strings back to readable text, and break any URL down into its parts and query parameters.
  • Calculateur chmod — Cochez les cases « Lecture », « Écriture » et « Exécution » pour le propriétaire, le groupe et les autres — ou saisissez 755, rwxr-xr-x ou u=rwx,g=rx,o=rx.
  • JSON Escape & Unescape — Make any text safe to paste into a JSON string — quotes, backslashes, newlines and Unicode — or turn an escaped string back into readable text or JSON.

Questions fréquentes

How do I convert a Windows path to a WSL path?
Replace the drive letter with /mnt/ and the lowercase letter, and backslashes with slashes: C:\Users\me becomes /mnt/c/Users/me. Inside WSL, wslpath 'C:\Users\me' does it too.
Why do I need double backslashes in code?
In JSON, C#, Java and JavaScript strings a backslash starts an escape sequence (\n, \t), so a literal backslash is written as \\. Forward slashes also work in most Windows APIs.
Does Windows accept forward slashes?
Most Windows programs and APIs accept C:/Users/me, including PowerShell, Node.js, Python and Git. The classic cmd.exe shell is the main exception for some commands.
Puis-je installer Windows Path Converter en tant qu’application web et l’utiliser hors ligne ?
Oui. Windows Path Converter est une application web installable (PWA) : elle s’installe depuis votre navigateur, sans passer par une boutique d’applications. Cliquez sur « Installer l’application » en haut de cette page dans Chrome ou Edge (Windows, macOS, Linux, ChromeOS) ; sur Android, utilisez « Partager » → « Ajouter à l’écran d’accueil » sur iPhone et iPad ; ou « Fichier » → « Ajouter au Dock » dans Safari 17+ sur Mac. L’application s’ouvre alors dans sa propre fenêtre avec sa propre icône, et comme elle s’exécute entièrement dans votre navigateur, elle continue de fonctionner hors ligne. Firefox sur ordinateur de bureau ne permet pas d’installer d’applications web. Comment fonctionne l’installation.

Outils similaires