Case Converter
Convert text to UPPER, lower, Title or Sentence case, and names to camelCase, snake_case, kebab-case and more, 14 styles at once.
Convert text to UPPER, lower, Title or Sentence case, and names to camelCase, snake_case, kebab-case and more, 14 styles at once.
Converts English text to forms such as upper case, lower case, capitalized first letters, camelCase and snake_case.
Paste your text.
Choose the form you want.
Copy it.
camelCase starts the first word in lowercase, like userProfileImage, while PascalCase starts every word with a capital, like UserProfileImage. This tool shows both at once, so click the one you need to copy it.
Turn on "convert each line separately" below the input box and write one name per line, and each line is converted on its own. With it off, the whole input is treated as one sentence. All 14 forms are shown at once.
Words are split not only at spaces, underscores, hyphens, dots and slashes, but also where the case changes and at digit boundaries. So imageURL splits into image and URL, and in snake_case becomes image_url. Characters with no case, such as Hangul, are left as they are.
camelCase (userName) is widely used for JavaScript variable and function names, and PascalCase (UserName) for classes and components. snake_case (user_name) is used for Python variables and functions and database column names, and UPPER_SNAKE_CASE (MAX_COUNT) for constants. kebab-case (user-name) is common in CSS classes and addresses (URLs).
The exact rules differ a little by language and team style guide. This tool converts into 14 styles at once, so you can copy the one you need.
English sentences can be changed to uppercase, lowercase or title case (the first letter of each word capitalized). Rules for English titles differ by style guide, for example whether articles and short prepositions stay lowercase, so for the title of a formal document check the institution's rules.
Languages with special case rules, such as the Turkish i, may differ from the usual conversion.
For names that mix in abbreviations, such as userID or HTTPServer, the result depends on where the words are split. Check the converted result by eye, and if needed put spaces between the words before converting to get what you want.
There is no fixed right answer; it is best to follow the style guide of your language and team.
Below are widely used conventions.
JavaScript variables and functions
Classes and components
Python variables and functions
Constants and environment variables
CSS classes and URLs
HTTP header names
Only the first letter differs: camelCase starts with a lowercase letter and PascalCase starts with an uppercase one.
userProfileImage is camelCase and UserProfileImage is PascalCase. Many languages use camelCase for variables and functions and PascalCase for classes and types.
When you convert from a plain sentence, the spaces between words disappear and only the first letter of each word is capitalized.
snake_case, joined with underscores (_), is common for Python variables and database column names, and kebab-case, joined with hyphens (-), is common for CSS and web addresses.
In many programming languages a hyphen reads as a minus sign, so it often can't be used in variable names. For addresses, on the other hand, search engines tend to read hyphens as word separators, so kebab-case is preferred.
It is the English headline style that capitalizes the first letter of each word but leaves short articles, prepositions and conjunctions in lowercase.
This tool also keeps short words such as a, the, and, of, in and to in lowercase, and always capitalizes the first and last words.
If you choose Sentence case, the whole text is lowercased first and then only the first letter at each sentence start is capitalized.
It is handy for making text that was typed entirely in capitals easier to read.
Proper nouns and abbreviations become lowercase, so you may need to capitalize them again.
If you turn on the option to convert each line separately, you can change a list of names all at once.
With the option off, the whole input is treated as a single name and converted together. To move a whole list of variables from snake_case to camelCase, per-line conversion is the right choice.
When an uppercase letter follows a lowercase letter or a digit, it is treated as the start of a new word, and when lowercase letters follow a run of capitals, the last capital starts the next word.
So HTMLParser is split into HTML and Parser, and getHTTPResponseCode into get, HTTP, Response and Code.
Digits attach to the preceding word. version2Beta splits into version2 and Beta, and iPhone15Pro into i, Phone15 and Pro, which becomes i_phone15_pro in snake_case.
For spellings that don't follow the rules, such as brand names, check the result and adjust it yourself.
Hangul has no uppercase or lowercase, so upper- and lowercase conversion leaves it unchanged; only the conversions that join words by spaces or separators are applied.
If you want to turn a Korean name into a variable name, it is safer to convert it to English first and then change the style. Some programming environments disallow Hangul variable names, or code-style tools may warn about them.
If you enter user profile imageURL as the default, the result for each style appears at a glance, as below.
Note that the abbreviation URL becomes Url in camelCase. This is because only the first letter of each word is capitalized.
UPPERCASE
Title Case
camelCase
PascalCase
snake_case
CONSTANT_CASE
kebab-case
Train-Case
dot.case
path/case
Converting a title with spaces to kebab-case leaves only lowercase letters and hyphens, which suits addresses and file names.
For example, My First Blog Post becomes my-first-blog-post. Names with spaces or Korean characters can turn into long percent-encoded strings in an address or break, so lowercase English letters are safer.
It is a convention to write them in uppercase with underscores so that it stands out that the value does not change.
Writing API_BASE_URL or MAX_RETRY_COUNT makes them instantly distinguishable from ordinary variables. Operating-system environment variables are case-sensitive in many environments, so they must be written exactly.
An environment variable name must be spelled the same in code, config files and the deployment service, or its value won't be found.
Title conversion lowercases the rest of each word, so words that originally had mixed case can be broken.
iPhone becomes Iphone, NASA becomes Nasa, and McDonald becomes Mcdonald. Fix such words yourself after conversion.
For jobs like changing snake_case fields in a server response to camelCase, it's quick to turn on per-line conversion and do it in one pass.
The safe order is to pull out just the list of field names, paste it in, copy the converted result, and apply it to your code.
dot.case, joined with dots, suits configuration keys and package names, and path/case, joined with slashes, suits folder paths and drafts of route addresses.
Configuration keys such as server.port and spring.datasource.url are typical examples. When building a path, split words into folders to express hierarchy, like user/profile/image.
Passwords, most server file paths, environment variables and programming-language variable names are case-sensitive, so even one different letter makes them a different value.
Domain names, on the other hand, are not case-sensitive, and email handling differs by service, so it's safer to write them consistently in lowercase.
A sentence of only capitals makes word shapes look alike, slowing reading, and online it can come across as shouting.
Use it only for one or two words that really need emphasis, and turn long sentences into Sentence case or lowercase to make them easy to read.
Capitals are fine for buttons or short labels, but explanatory sentences read more easily in lowercase.
The direction is free: even if you enter a camelCase or PascalCase name, it splits the words at the capital boundaries and converts to the style you want.
For example, enter getUserProfileImage and copy the snake_case result to get get_user_profile_image. It also splits correctly when lowercase letters follow a run of capitals.
Conversion only changes how the text looks, so when you actually rename something in code you must also fix all the references across the project.
What you enter is converted only inside the browser and is not sent to a server.