Filename Sanitizer & Cleaner

Sanitize filenames for cross-platform compatibility across Windows, Mac, Linux, and URLs.

Processing Architecture: Client-Side (Processed locally in your web browser with zero server uploads)

How to Use Filename Sanitizer & Cleaner

  1. Step 1: Enter Raw Filename

    Paste messy filenames or directory names.

  2. Step 2: Select Sanitization Rule

    Choose kebab-case, snake_case, or CamelCase with illegal character removal.

  3. Step 3: Copy Safe Filename

    Copy filenames that won't fail on Windows or Linux servers.

Key Features & Capabilities

  • Strips Windows reserved characters: `/ \ ? % * : | " < > .`
  • Filters Windows reserved system names (CON, PRN, AUX, NUL, COM1-9, LPT1-9)
  • Transliterates accents and replaces spaces with hyphens or underscores

Frequently Asked Questions

Why do certain filenames fail on Windows?

Windows forbids characters like colons, question marks, asterisks, and specific legacy filenames like 'CON' or 'PRN'.

Can I convert spaces to hyphens or underscores?

Yes, you can choose between kebab-case (hyphens) or snake_case (underscores) for web URLs and file servers.

Related Tools