Naming a variable
Turn “user profile image” into a name for your code — each language has its own convention
- camelCase
- userProfileImage
- snake_case
- user_profile_image
- kebab-case
- user-profile-image
- PascalCase
- UserProfileImage
camelCase, snake_case and kebab-case, all at once
Nothing entered yet
Type a word or sentence and every casing style appears here.
Case changes, spaces, underscores, hyphens and dots are all treated as word boundaries.
Turn “user profile image” into a name for your code — each language has its own convention
Make “quarterly sales report” into a slide or report title
A sentence typed with Caps Lock on, back to normal
The same identifier goes by different names in different places: camelCase in JavaScript, snake_case in Python, kebab-case in CSS, CONSTANT_CASE for environment variables. Type it once and every form is produced together.
A boundary is any change from lowercase to uppercase, plus spaces, underscores, hyphens and dots. So "myVariableName", "my_variable_name" and "my-variable-name" all produce the same result.
Title Case capitalises the first letter of every word, as in headings. Sentence case capitalises only the first letter of the whole string, as in ordinary prose.
Consecutive capitals are read as one unit, so "HTTPServer" becomes "http_server" rather than "h_t_t_p_server".