Which case goes where?
| Case | Example | Commonly used for |
|---|---|---|
| camelCase | userProfileId | Variables and functions in JavaScript, Java, Swift |
| PascalCase | UserProfileId | Classes, types, React components |
| snake_case | user_profile_id | Python, Ruby, database columns |
| kebab-case | user-profile-id | URLs, CSS classes, file names |
| CONSTANT_CASE | USER_PROFILE_ID | Constants and environment variables |
| Title Case | User Profile Id | Headings and labels |
| Sentence case | User profile id | Sentences, UI text |
How to use it
- Type words, a sentence or an existing name into Text.
- Every case appears below as you type. Press Copy on the one you need.
Example
XMLHttpRequest becomes xmlHttpRequest, xml_http_request, xml-http-request and XML_HTTP_REQUEST.
Good to know
- Existing names are split smartly:
XMLHttpRequestbecomesxml_http_request, andgetUserByIDbecomesget-user-by-id. - Numbers stay attached to the word before them, so
utf8Decoderbecomesutf8_decoder. - Several lines? Each line is converted separately.
FAQ
Is my text uploaded?
No. Conversion happens in your browser. See the privacy page.
Why does “ID” become “Id” in PascalCase?
Each word is written with one capital letter, so acronyms are treated like any other word: getUserByID becomes
GetUserById. This keeps names consistent and easy to convert back.