Case Converter
ConverterConvert text between camelCase, snake_case, kebab-case, PascalCase and CONSTANT_CASE instantly. Switch naming styles for code, configs and identifiers.
hello world example_textHELLO WORLD EXAMPLE_TEXTHello World Example TextHello world example texthelloWorldExampleTextHelloWorldExampleTexthello_world_example_texthello-world-example-textHELLO_WORLD_EXAMPLE_TEXTHello-World-Example-Texthello.world.example.texthello/world/example/textRelated Tools
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
- Open the Case Converter tool
- Select the source and target formats
- Adjust the output options as needed
- Click the Convert button; results appear in real time
- 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.