File paths to convert

Result

How does it work?

This tool converts file path separators between different operating system styles:

  • Windows style: Uses backslashes (\) as path separators
  • Unix style: Uses forward slashes (/) as path separators

Examples

Windows paths

C:\Users\username\Documents\project\src\main.js
C:\Program Files\Application\config.ini
..\relative\path\to\file.txt

Converted to Unix style:

C:/Users/username/Documents/project/src/main.js
C:/Program Files/Application/config.ini
../relative/path/to/file.txt

Unix paths

/home/username/projects/website/index.html
/var/www/html/images/logo.png
../relative/path/to/file.txt

Converted to Windows style:

\home\username\projects\website\index.html
\var\www\html\images\logo.png
..\relative\path\to\file.txt

Path Normalization

When the "Normalize paths" option is enabled, the tool also:

  • Removes multiple consecutive separators (e.g., path//to///filepath/to/file)
  • Removes trailing separators (e.g., path/to/directory/path/to/directory)

This tool is useful for:

  • Converting paths between different operating systems
  • Preparing file paths for cross-platform applications
  • Fixing inconsistent path separators in configuration files
  • Cleaning up file paths copied from different sources
  • Preparing paths for use in documentation or code examples

Note:

When using "Auto" mode, the tool detects which separator is most common in your input and converts to the opposite style. This is useful when you're not sure which style your paths currently use.

Other tools

See other tools