1. Home
  2. Text
  3. Case Converter

Case Converter

Change letter case or turn phrases into camelCase, snake_case and kebab-case.

Runs in your browser · No upload
Capitalizes each word, keeping short words like a, an, the, of and and lowercase unless they start a line or sentence.
Result
The Lord of the Rings: The Return of the King userProfileImage Max_Retry_Count Hello World. How Are You?
Characters
104
Words
17
Lines
4

How to use

  1. Paste a sentence, a headline or a list of variable names. Multiple lines are fine.
  2. Pick a case. The result below updates right away.
  3. Use Copy to grab the result, or Download .txt to save it as a file.

What each case looks like

Input: user profile image

Case Result Typical use
UPPERCASE USER PROFILE IMAGE Emphasis, acronyms
lowercase user profile image Email addresses, tags
Title Case User Profile Image Headlines, book and article titles
Sentence case User profile image Body text, UI labels
camelCase userProfileImage JavaScript and Java variables, JSON keys
PascalCase UserProfileImage Classes, React components
snake_case user_profile_image Python variables, database columns
kebab-case user-profile-image URL slugs, CSS classes, file names
CONSTANT_CASE USER_PROFILE_IMAGE Constants, environment variables

How words are split

The programming cases (camelCase through CONSTANT_CASE) convert each line on its own. Words are split on spaces, punctuation, _, - and existing camelCase boundaries.

  • XMLHttpRequest → xml_http_request (a capital followed by a lowercase letter starts a new word)
  • MAX_RETRY_COUNT → maxRetryCount
  • don't stop → dont_stop (apostrophes inside words are dropped)
  • utf8Encoding → utf8_encoding (letters and digits stay together)

Things to know

  • Title Case keeps these short words lowercase: a, an, the, and, but, or, nor, for, as, at, by, in, of, on, per, to, via, vs. They are still capitalized at the start of a line or sentence, or after a colon. Style guides such as AP and Chicago disagree on details like four-letter prepositions, so double-check titles that matter.
  • In mostly lowercase text, words with deliberate capitals such as NASA or iPhone stay as you typed them in Title Case and Sentence case. Lines written mostly in capitals are normalized instead. Sentence case also keeps the pronoun I (and I’m, I’ll, I’ve, I’d) capitalized.
  • Characters without case (Korean, Chinese, Japanese, digits) are never changed. They still count as words in the programming cases.

FAQ

Can I convert a whole column of names at once?

Yes. Paste one name per line and choose a case such as snake_case. Each line is converted separately, and blank lines are kept.

What’s the difference between Title Case and Sentence case?

Title Case capitalizes most words (“The Return of the King”). Sentence case capitalizes only the first word of each sentence (“The return of the king”).

Is my text uploaded?

No. To check the length of the result, paste it into the character counter. Your text is converted in your browser and never sent to a server.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.