Apps / Security & Privacy Tools / Filename & URL Slug Sanitizer

🧹 Filename & URL Slug Sanitizer

Type or paste any string and get a filesystem-safe filename and a URL-safe slug side by side. Handles reserved Windows device names, diacritics, and length limits. Everything runs locally in your browser.

1. Input

2. Safe filename

Strips < > : " / \ | ? * and control characters, collapses whitespace, trims trailing dots/spaces, renames reserved Windows device names (CON, PRN, AUX, NUL, COM1-9, LPT1-9), and enforces the max length above.

3. Safe URL slug

Lowercases, strips accents/diacritics (é → e), replaces anything that isn't a-z 0-9 with a hyphen, collapses repeated hyphens, and enforces the max length above.