Esta página aún no está traducida al español, así que la mostramos en inglés.

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.

Actualizado el

Tus datos nunca salen de tu ordenador. Todo se procesa localmente en tu navegador.

Cómo usar: 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.

También se busca como: 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.

Herramientas que combinan con: 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.
  • Calculadora de chmod — Marca las casillas «Leer», «Escribir» y «Ejecutar» para el propietario, el grupo y los demás, o escribe 755, rwxr-xr-x o 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.

Preguntas frecuentes

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.
¿Puedo instalar Windows Path Converter como aplicación web y utilizarla sin conexión?
Sí. Windows Path Converter es una aplicación web instalable (PWA): se instala desde el navegador, no se descarga desde una tienda de aplicaciones. Haz clic en «Instalar aplicación» en la parte superior de esta página en Chrome o Edge (Windows, macOS, Linux, ChromeOS) o, en Android, utiliza «Compartir» → «Añadir a la pantalla de inicio» en iPhone y iPad, o «Archivo» → «Añadir al Dock» en Safari 17+ en un Mac. A continuación, se abrirá en su propia ventana con su propio icono y, como se ejecuta íntegramente en tu navegador, seguirá funcionando sin conexión. Firefox en el ordenador de sobremesa no permite instalar aplicaciones web. Cómo funciona la instalación.

Herramientas relacionadas