Text Sanitizer for Filenames, Identifiers and Usernames
Clean text into a safe Windows, macOS or Linux filename, a valid code identifier or a tidy username, with a mode switch and a live preview of every change.
- Free
- No sign-up
- Works on any device
About Text Sanitizer for Filenames, Identifiers and Usernames
A title that works as text may not work as a file, a variable or a username. This sanitizer fixes three kinds of name. Filenames lose characters illegal on Windows (< > : " / \ | ? *), control characters, trailing dots and spaces, and reserved names such as CON or NUL, and are cut to a byte limit without losing the extension. Identifiers become camelCase, PascalCase or snake_case names that do not start with a digit or collide with a language's reserved words. Usernames become short lower-case names using letters, digits and a chosen separator.
How to use Text Sanitizer for Filenames, Identifiers and Usernames
- Paste one name per line and choose filename, identifier or username.
- Set the options for the system, language or length.
- Copy the cleaned names and check the table of what changed.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
Which characters are not allowed in Windows filenames?
The characters < > : " / \ | ? * and control characters, plus names ending in a dot or space and reserved names such as CON, PRN, AUX, NUL, COM1 and LPT1.
What happens to a reserved word used as an identifier?
An underscore is added to the end, so class becomes class_ in JavaScript. This follows the usual convention and keeps the meaning readable.
Why measure the filename limit in bytes?
Common file systems limit a name to 255 bytes, and accented letters or emoji take more than one byte. Counting bytes keeps the name safe on all of them.
Is Text Sanitizer for Filenames, Identifiers and Usernames free?
Yes. Text Sanitizer for Filenames, Identifiers and Usernames on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.