Remove Underscores

Remove or replace underscores in filenames, slugs or snake_case text

Text with underscores

Cleaned text

Nothing you type here is ever sent anywhere — the conversion runs entirely in your browser.

About this tool

Underscores show up everywhere programmatic systems touch text — exported filenames, database slugs, snake_case variable names, and URL-safe identifiers — but they read poorly as normal prose. This tool finds every underscore in your text and replaces it with whatever you specify: a space to turn "my_file_name" into readable words, a hyphen to make a kebab-case slug, or nothing at all to squeeze words together. It's a quick cleanup step before presenting exported data or filenames to a human reader.

Can I replace underscores with a hyphen instead of a space?

Yes — type "-" into the replacement field and every underscore will become a hyphen, which is useful for converting snake_case into kebab-case.

Can I remove underscores completely?

Yes — clear the replacement field and every underscore will simply be deleted, joining the surrounding characters together with nothing in between.

Does this change capitalization, like camelCase would?

No — only the underscore characters themselves are touched. The letters around them keep their original case, so pair this with a case-conversion tool if you also want to adjust capitalization.

Cleaning up snake_case

Underscores in the text are replaced with a space by default, or with any character you type in the replacement box. It's the quickest way to turn a file name or a database field into something readable.

Typical uses: tidying a list of file names before you rename them, converting slugs from a URL into titles, and turning variable names back into words. Switch the replacement to a hyphen and the same tool converts snake_case into hyphenated slugs.

Everything else in the text stays exactly as it was, including capitals, so the result is a clean starting point rather than a finished title.

A quick example

Before
my_file_name_final
After
my file name final

Good to know

Leave the replacement empty if you want the words joined together instead.