Case Converter

Converter

Convert text between camelCase, snake_case, kebab-case, PascalCase and CONSTANT_CASE instantly. Switch naming styles for code, configs and identifiers.

Text
12 Formats
lower casehello world example_text
UPPER CASEHELLO WORLD EXAMPLE_TEXT
Title CaseHello World Example Text
Sentence caseHello world example text
camelCasehelloWorldExampleText
PascalCaseHelloWorldExampleText
snake_casehello_world_example_text
kebab-casehello-world-example-text
CONSTANT_CASEHELLO_WORLD_EXAMPLE_TEXT
Train-CaseHello-World-Example-Text
dot.casehello.world.example.text
path/casehello/world/example/text

About Case Converter

Consistent naming is an everyday concern across every language and layer: databases favor snake_case, Java and most class conventions use UpperCamelCase (PascalCase), CSS variables are kebab-case, and environment variables are usually SCREAMING_SNAKE_CASE. This tool converts between camelCase, snake_case, kebab-case, PascalCase, and CONSTANT_CASE in one click while respecting word boundaries. For example, user_name becomes userName, UserName, or USER_NAME. It detects word boundaries from spaces, underscores, hyphens, and case transitions, so mixed inputs like user_Name-Test still split cleanly. The classic gotcha is acronyms: runs like HTTPURL are treated as one token, so camelCase may yield httpurl unless you verify. Conversion runs entirely in your browser and text is never uploaded, making it safe for real payloads and field lists.

How to Use

  1. Open the Case Converter tool
  2. Select the source and target formats
  3. Adjust the output options as needed
  4. Click the Convert button; results appear in real time
  5. Copy or export the result

Use Cases

  • Rename variables — Convert backend snake_case fields into the camelCase your frontend expects.
  • Make constants — Turn a phrase into SCREAMING_SNAKE_CASE for an enum or env var name.
  • URL slugs — Convert an article title into a kebab-case, SEO-friendly route slug.
  • Heading style — Apply Title Case or sentence case to unify docs and button copy.
  • Class names — Turn a component description into PascalCase per React/class conventions.
  • API field mapping — Transform JSON response keys between snake_case (backend) and camelCase (frontend) in bulk for API client code.
  • Database column naming — Convert database column names into consistent naming conventions across different ORM schemas and migration files.

FAQ

How does it find word boundaries?

It treats spaces, underscores, hyphens, and camel-case case transitions (like fooBar) all as separators, then recombines for the target style, so mixed input splits correctly.

Are digits treated as part of a word?

They stay attached to the adjacent word. user2Name to snake_case yields user2_name; digits are not split off, matching most code styles.

What about runs of capitals like HTTPURL?

Consecutive capitals are treated as one token; camelCase may output httpurl, so verify acronyms after converting.

Can it batch-convert multiple lines?

Yes, it processes line by line, each treated as its own piece of text — handy for tidying a column of field names at once.

I just want all upper/lower case.

Pick the UPPER or lower mode; it changes only letter case and leaves word separators untouched.

Can it handle mixed styles like user_Name-Test?

Yes. It extracts every token and rebuilds the target style, so any mixed separators normalize cleanly as long as word boundaries are clear.

Advertisement