Loading…

Case Converter

Change the case of any text in one click. Paste your words, choose a style, and the converted text appears at once, ready to copy or download. The Case Converter handles everyday writing, with Sentence case, Title Case, UPPER CASE and lower case, and the names programmers use, such as camelCase, PascalCase, snake_case and kebab-case. It runs in your browser, so your text is never uploaded.

  • Free
  • No sign-up
  • Runs in your browser
  • Private: nothing is stored

Last updated

How to use the Case Converter

  1. Type or paste your text into the box on the left, or use Open file to load a text file.
  2. Choose a case style. The result updates instantly on the right.
  3. Use Copy to put the result on your clipboard, or Download to save it as a text file.
  4. Use Use as input to convert the result again with another style.

Why use this tool

  • Fifteen styles for writing and for code, in one tool.
  • Smart Title Case that keeps small words like “of” and “the” in lower case.
  • Code styles work line by line, so you can convert a whole list of names at once.
  • Works with accented letters and many languages, and splits camelCase words correctly.
  • Private: your text is converted in your browser and never uploaded.

Case styles explained

Here is what each style does to the text the quick brown fox.

StyleExampleTypical use
Sentence caseThe quick brown foxNormal writing, captions, emails and fixing text typed in capitals.
lower casethe quick brown foxUsernames, tags, search terms and email addresses.
UPPER CASETHE QUICK BROWN FOXWarnings, acronyms and short labels.
Title CaseThe Quick Brown FoxHeadlines, book and article titles.
camelCasetheQuickBrownFoxVariable and function names in JavaScript, Java and Swift.
PascalCaseTheQuickBrownFoxClass and component names.
snake_casethe_quick_brown_foxPython and Ruby names, and database columns.
kebab-casethe-quick-brown-foxURLs, file names and CSS classes.
CONSTANT_CASETHE_QUICK_BROWN_FOXConstants and environment variables.

How Title Case works

Style guides such as AP, APA and Chicago agree on the main idea: capitalize the important words and leave short joining words in lower case. This tool follows that idea. It capitalizes the first and last word, every word after a colon or a new line, and every other word except short ones such as a, an, the, and, but, or, for, of, in, on, at, to, by and with. Hyphenated words are capitalized on both sides, so well-known becomes Well-Known.

If your style guide capitalizes every word, untick the option to keep small words in lower case, or choose Capitalize Each Word. Proper names and brand names that need special capitals, such as iPhone, should be checked by hand after converting.

Converting names for code

The code styles split your text into words wherever there is a space, a dash, an underscore, a dot or a change from small to capital letters, then join them in the new style. That means userFirstName, user_first_name and User first name all produce the same result, and acronyms stay together, so HTTPServer becomes http_server.

Each line is converted on its own. Paste a list of column names or variables, one per line, and you get the whole list back in the new style, which is handy when you move code between languages or rename database fields.

Your text stays private

The conversion happens in your browser. Your text is not sent to our server, stored or logged, and files you open are read on your device only. It is safe to use for drafts and confidential text.

Tips

  • Fix text typed in capitals. Choose Sentence case to bring it back to normal writing.
  • Chain conversions. Use the Use as input button to move the result back to the input box and convert it again.
  • Check names and acronyms. Converting to lower case cannot know which words are names, so fix those by hand.
  • Make URL slugs. Choose kebab-case to turn a title into a clean web address part.

Case Converter FAQ

It changes the capital and small letters of your text, for example from lower case to UPPER CASE, or from a sentence to a camelCase variable name.
Yes. It is free with no sign-up, and the conversion happens in your browser. Your text is never uploaded or stored.
Title Case follows publishing rules and leaves small words such as of, the and and in lower case. Capitalize Each Word makes the first letter of every word a capital, and leaves the rest as typed.
Choose Sentence case. It makes everything lower case, then capitalizes the first letter of each sentence and the word I.
camelCase joins words with no spaces, writing the first word in lower case and every other word with a capital, like userFirstName. It is common for variable and function names.
snake_case joins words with underscores and kebab-case joins them with dashes. Underscores are common in Python and databases, and dashes in URLs, file names and CSS.
Yes. Put one name on each line. The code styles convert every line separately, so a whole list changes in one click.
Yes. Accented and non-English letters that have capitals, such as é, ü and ж, are converted correctly. Scripts without capitals, such as Bengali and Chinese, are left as they are.
Yes. Text styles such as UPPER CASE and Title Case keep your line breaks, spaces and punctuation exactly. Code styles such as snake_case work line by line and remove the spaces and punctuation between words, because that is how those styles are written.
Yes. Use Copy to put it on your clipboard, or Download to save it as a text file.