Text Case Converter
Convert between 10 common case styles with smart word splitting.
Input
Output
Convert text between camelCase, snake_case, kebab-case and more
Convert any string between ten common naming conventions used in code:
camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE,
dot.case, Title Case, Sentence case, UPPERCASE and lowercase. The
converter intelligently splits the input on word boundaries — spaces,
underscores, hyphens, dots, and case transitions — so
userIDFromAPI, user_id_from_api, and
user-id-from-api all normalize to the same word list
before reformatting.
When to use each
- camelCase — JavaScript variables, JSON keys.
- PascalCase — class names, React components, TypeScript types.
- snake_case — Python, Ruby, Rust variables; SQL columns.
- kebab-case — URL paths, CSS classes, npm packages.
- CONSTANT_CASE — environment variables, JS constants.
Related tools
FAQ
Does it preserve numbers?
Numbers are kept attached to the surrounding word —
getHTTPResponse2 → get_http_response2.
How are acronyms handled?
Consecutive uppercase letters are treated as a single word, so
userIDFromAPI splits to user, id, from, api.
Will it work on multi-line input?
Yes, but each line is treated as one identifier. For per-line
conversion, paste line by line.