Change the capitalization of any text, or turn a phrase into a programming identifier such as camelCase, snake_case or kebab-case. Pick a style and the result appears instantly.
Case converter is a free online tool by Hack the Hydra. Convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case or CONSTANT_CASE. Free and private.
Text styles
UPPERCASE and lowercase change every letter. Title Case capitalizes the first letter of each word; Sentence case capitalizes only the first letter of each sentence and leaves the rest lowercase. Note that these are mechanical rules: Title Case here does not keep small words such as "of" or "and" lowercase, as some style guides require, so check headlines by hand.
Programming identifiers
camelCase and PascalCase join words with no separator, snake_case uses underscores, kebab-case uses hyphens and CONSTANT_CASE is snake_case in capitals. Existing camelCase input is split at the capital letters first, so "userAccountId" becomes "user_account_id". Each line of your input is converted separately, which makes it easy to rename a list of variables at once.
Where each style is used
JavaScript and Java variables use camelCase, classes use PascalCase, Python and Ruby prefer snake_case, CSS classes and URL slugs use kebab-case, and constants or environment variables use CONSTANT_CASE. Accented letters are handled correctly in all modes.
Example
A heading turned into snake_case for a file or variable name.
Input
monthly sales report
Output
monthly_sales_report
How to use
- Type or paste your text in the box above.
- The result updates as you type; change the options to switch mode.
- Copy the result or download it.
FAQ
Is my text uploaded?
No. The conversion is plain JavaScript running in your browser tab.
Why does Title Case capitalize small words like "the"?
The tool applies one simple rule to every word. Editorial title case rules differ between style guides (AP, Chicago, APA), so apply your guide's exceptions manually.
Does it handle accents and non-English letters?
Yes. It uses Unicode-aware rules, so "éCOLE" becomes "École" in Title Case. A few languages have special rules (for example Turkish dotted i) that are not applied.
Can I convert several lines at once?
Yes. For identifier styles each line becomes its own identifier; for the other styles the whole text is converted.