Case Converter
Switch text between nine case styles, including camelCase, snake_case and kebab-case.
Output updates as you type.
Features
- Nine case styles covering prose and code conventions
- Preserves punctuation and spacing where appropriate
- Handles existing camelCase and snake_case input correctly
- Feed the result back in with one click
How to use it
- Paste your text into the input box.
- Choose the case style you want.
- The result appears immediately below.
- Press Copy result, or Use result as input to chain conversions.
Which case style to use where
Prose styles and code styles solve different problems. Sentence case capitalises only the first word and proper nouns, it is the house style for most UK publications and increasingly for UI labels, because it reads faster than title case. Title case capitalises principal words and is standard for headlines in US publications. This tool uses a simple every-word rule for title case; strict style guides also lowercase short prepositions and articles, so check the output against your guide.
Code conventions are largely arbitrary but strongly enforced by ecosystem. JavaScript and Java use camelCase for variables and PascalCase for classes. Python and Ruby prefer snake_case. CSS classes and URL slugs use kebab-case, since underscores were historically unreliable in URLs. CONSTANT_CASE marks compile-time constants and environment variables almost universally.
The tricky part is splitting the input into words before rejoining it. This tool detects existing boundaries from spaces, hyphens, underscores and lowercase-to-uppercase transitions, so converting myVariableName straight to my-variable-name works without a manual pass first.
Frequently asked questions
Related tools
Further reading
Read the full guide on the 123MiniApps blog.