Skip to main content
CaseSwitch

Remove Underscores

Use the CaseSwitch Remove Underscores tool to turn file_name_style into readable words by replacing every underscore with a space (or another separator you set). Paste snake_case labels, copy the human-friendly result. Replacement runs in this browser — nothing is uploaded.

Written by the CaseSwitch editorial team. We maintain these tools in the browser so drafts, keys, and images stay on your device.

Last reviewed: 23 July 2026

Processed locally in your browser. Nothing is sent to a server.

Paste or type text to convert. Output stays empty until there is input.

Character count: 0 · Word count: 0 · Line count: 0

Examples

Default space replacement

Input

file_name_v2

Output

file name v2

Replacement "-"

Input

file_name

Output

file-name

Replacement "" (delete underscores)

Input

a__b

Output

ab

Double underscores become double spaces

Input

hello__world

Output

hello  world

Leading and trailing underscores

Input

_hidden_value_

Output

 hidden value 

How to use

  1. Paste the snake_case text or list.
  2. Leave Replacement as a space, or set `-` / another separator if you need it.
  3. Copy the result; optionally run Whitespace Remover or a case converter next.

What this tool is for

Filesystems, databases, and CMS exports often forbid spaces and use underscores instead. Readers still want ordinary words on a slide or in a sentence. This tool replaces each `_` with your Replacement string (default a space). It does not title-case the result — pair with a case converter if you need capitals.

How it works

A global replace of `_` with the Replacement option (default `" "`) runs on the whole paste. Double underscores become double spaces unless you collapse whitespace next. Leading or trailing underscores become leading or trailing replacement characters. No other characters are changed.

When to use it

Humanizing database exports, cleaning download filenames for a slide, preparing snake_case labels for a non-technical audience, and turning machine keys into readable lines before a sort or frequency pass.

When not to use it

Do not remove underscores from Python identifiers you still need to run. Do not assume the result is a valid filename on every OS if you introduce spaces. Prefer Find and Replace or kebab-case tools when you want hyphens instead of spaces.

How it compares to related tools

Snake case converters move toward underscores; this page moves away. The Slug Generator and kebab-case tools prefer hyphens for URLs. The Whitespace Remover tidies the spaces you just created. The Character Remover can delete underscores without inserting a replacement.

Common mistakes

Removing underscores in `__init__`-style names and breaking meaning. Leaving double spaces in the middle of a title after `__`. Forgetting a second pass through Title Case or Sentence Case when the audience expects capitals.

Spaces versus hyphens

Default spaces are right for prose and slides. Hyphens are better when the next stop is a URL or CSS identifier — set Replacement to `-`, or use a kebab-case / slug tool if you also need lowercasing and punctuation stripping. Empty replacement deletes underscores and can glue tokens together.

Follow-up cleanup

Double underscores leave double spaces. Run the Whitespace Remover to collapse them. For Title Case headings, convert after underscores are gone so spaces define word boundaries correctly.

Frequently asked questions

Can I replace underscores with hyphens instead?+

Yes. Set Replacement to `-`, or use find-and-replace / kebab-case tools for slug-style output.

Does this affect trailing underscores?+

Yes. Every underscore in the pasted text is replaced.

Will it title-case the words?+

No. Only underscores change. Use a case converter for capitals.

What about double underscores?+

Each `_` is replaced, so `__` becomes two spaces with the default setting.

Can I delete underscores with no separator?+

Set Replacement to an empty string. Tokens will concatenate.

Is my text uploaded?+

No. Replacement runs in this browser.

Does CaseSwitch upload this text?+

No. Conversion, cleaning, and counting for this page run in your browser. Drafts are not sent to CaseSwitch for processing.

Related tools