Skip to content

Case Converter

camelCase, snake_case and kebab-case, all at once

Runs in your browser
Try an example

Input

Result

Result

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.

Case Converter examples

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

Formatting a title

Make “quarterly sales report” into a slide or report title

Title Case
Quarterly Sales Report
Sentence case
Quarterly sales report
UPPERCASE
QUARTERLY SALES REPORT

Caps Lock mishap

A sentence typed with Caps Lock on, back to normal

Sentence case
Please check the attached file
lowercase
please check the attached file
Title Case
Please Check The Attached File
))} )) }

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.

How to use

  1. 1 Type or paste a word, identifier or sentence.
  2. 2 Every casing style is generated at once.
  3. 3 Press copy next to the one you want.

Frequently asked questions

How are word boundaries detected?

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.

What is the difference between Title Case and Sentence case?

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.

Does it handle acronyms like "HTTPServer"?

Consecutive capitals are read as one unit, so "HTTPServer" becomes "http_server" rather than "h_t_t_p_server".

Works well with