Case Converter: Upper, Lower, Sentence and Code Cases

Switch text between upper case, lower case, sentence case and capitalized words, or turn phrases into camelCase, snake_case, kebab-case and CONSTANT_CASE names for code.

The output will appear here.
Advertisement icyabmod — get a website for your business, design it on a live demo

How Case Converter: Upper, Lower, Sentence and Code Cases works

Switch text between upper case, lower case, sentence case and capitalized words, or turn phrases into camelCase, snake_case, kebab-case and CONSTANT_CASE names for code.

Input Text
Output Converted text
Works done 0

How to use it

This case converter changes the capitalization of any text in one step: UPPER CASE, lower case, Sentence case, Capitalize Each Word or tOGGLE cASE. It also turns phrases into the naming styles programmers use every day, from camelCase and PascalCase to snake_case, kebab-case and CONSTANT_CASE. Paste a shouty email, an exported spreadsheet column or a list of field names, pick a style and copy the clean result.

How to use the case converter

  1. Paste or type your text into the input box.
  2. Pick a style from the "Convert to" list.
  3. Leave "Letter rules" on Standard, the default on this page, for English and most other languages; choose Turkish only when the text itself is Turkish.
  4. Press "Run tool" or use Ctrl + Enter.
  5. Take the result with "Copy output" or save it with "Download output"; "Clear" resets the tool for the next piece of text.

Five text styles at a glance

StyleInputOutput
UPPER CASEfinal noticeFINAL NOTICE
lower casePLEASE READ THISplease read this
Sentence caseTHE MEETING MOVED. NEW TIME IS 3 PM!The meeting moved. New time is 3 pm!
Capitalize Each Worddon't forget the keysDon't Forget The Keys
tOGGLE cASEhELLO wORLDHello World

Sentence case lowercases the whole text first. It then capitalizes the first letter of the text, the first letter of every line, and the first letter after a period, exclamation mark, question mark or ellipsis that is followed by a space. Capitalize Each Word also starts by lowercasing, then raises the first letter of every word. A hyphen counts as a word boundary, so "well-known" becomes "Well-Known", but the letter after an apostrophe is left alone, which is why you get "Don't" rather than "Don'T". Toggle case flips every letter: it is the quickest repair for a line typed while Caps Lock was on and Shift was held for the first letter.

Naming styles for code and data

The five developer styles work line by line, and each line of input becomes one identifier. Anything that is not a letter or a digit separates words, including spaces, hyphens, underscores and dots, and existing camelCase boundaries are detected too. That is how "myHTTPServer url" becomes myHttpServerUrl and getUserID turns into get_user_id in snake_case.

Style"user first name" becomesWhere it is common
camelCaseuserFirstNameJavaScript and Java variables and functions, many JSON APIs
PascalCaseUserFirstNameClass names, React components, C# types and methods
snake_caseuser_first_namePython functions and variables, SQL tables and columns
kebab-caseuser-first-nameCSS class names, URL paths, file names
CONSTANT_CASEUSER_FIRST_NAMEConstants and environment variables

Python's style guide, PEP 8, recommends snake_case for functions and variables and PascalCase for classes, while most JavaScript code uses camelCase for variables. Within a project, consistency matters more than the choice itself. One practical trick: to tidy spreadsheet headers, paste them one per line, convert them to snake_case and put them back in the header row. Headers pasted as a single comma-separated line would merge into one long name. Once the headers are clean, the CSV to JSON converter produces keys in the same style.

Accented letters such as é or ø are kept exactly as they are, because the converter does not transliterate. Many programming languages accept them in identifiers, yet environment variables, older databases and teams on different keyboard layouts all cope better with plain ASCII. If what you need is an ASCII-only URL slug, the slug generator strips accents and joins lowercase words with hyphens.

Why there is a Turkish letter option

English pairs i with I. Turkish has two separate pairs: dotted i, whose capital is İ, and dotless ı, whose capital is a plain I. Converters that apply the English pairing damage Turkish text: "istanbul" becomes "ISTANBUL" instead of "İSTANBUL", and the word "KIZ" (girl) lowercases to "kiz" instead of "kız". With Turkish rules selected, uppercasing turns i into the dotted capital and lowercasing turns I into the dotless letter, so these words come out right. Turkish rules are the default on the Turkish version of this page.

Standard rules follow English behaviour, swapping i and I, and that is what you want for English text. Running a word like INFO through Turkish rules would give it a dotless i, which looks like a typo in English. In both modes a dotted capital lowercases to a plain i. Some environments, JavaScript among them, add an invisible combining dot after the i in that case; it does not show on screen but makes searches and comparisons fail. This converter never adds it.

Common mistakes and how to avoid them

  • Sentence case lowercases proper nouns. The converter has no dictionary, so "MEET ANNA IN PARIS" becomes "Meet anna in paris", and the pronoun I turns into a small i mid-sentence. Fix names, brands, places and acronyms by hand afterwards.
  • Abbreviations look like sentence endings. A period followed by a space starts a new sentence, so "fruit, e.g. apples" comes out as "Fruit, e.g. Apples". Scan text that is full of abbreviations.
  • Capitalize Each Word is not style-guide title case. Most English style guides keep short words such as "of", "the" and "and" lowercase inside a headline; this mode capitalizes them all, so "the end of the road" becomes "The End Of The Road". Names such as O'Neill also need a manual touch, because the letter after the apostrophe stays small.
  • Long passages in ALL CAPS are tiring to read. Capitals remove the varied word shapes readers rely on, and in email or chat they come across as shouting. Keep upper case for short labels, warnings and headings.
  • Separators change length. userFirstName is 13 characters, user_first_name is 15. If a column or form field has a limit, check the result with the character counter.
  • Bulk renames deserve a review. After converting the keys of a config file, compare the old and new versions in the text diff checker to confirm that only the lines you meant to change are different.

Privacy

The conversion runs in JavaScript inside your browser tab. Your text is not sent to the server; the only thing the page records is an anonymous counter showing that the tool was run. The tool sets no length limit of its own, so long documents work as far as your browser's memory allows, and your original stays untouched in the input box. More writing helpers are listed under text tools.

Advertisement icyabmod — 7 sections × 10 designs and 10 color palettes: design your site yourself, preview ready in 48 hours

Frequently asked questions

Choose Sentence case and run the tool. Everything is lowercased, then the first letter of each sentence and each line is capitalized, which turns a shouty paragraph into ordinary prose. The converter cannot know which words are names, so people, places, brands and the pronoun I end up lowercase; correct those by hand. For a list of names rather than sentences, Capitalize Each Word is usually the better choice.

Both join words without spaces and mark each new word with a capital letter. The only difference is the first letter: camelCase starts lowercase (orderTotal), PascalCase starts uppercase (OrderTotal). By convention, camelCase is used for variables, functions and object properties in JavaScript and Java, while PascalCase is reserved for class names, types and components. Using the expected style tells other developers at a glance what kind of thing a name refers to.

Not exactly. It capitalizes the first letter of every word, including articles, conjunctions and short prepositions. Common style guides keep words like a, of, the and and lowercase unless they open the title, and they disagree on some details such as longer prepositions. Run Capitalize Each Word to get most of the way, then lowercase the small words your style guide expects. For names, product lists and table headers, the result usually works as it is.

Turkish has a dotted i with the capital İ and a dotless ı with the capital I, while most software assumes the English pairing of i and I. A generic converter therefore uppercases istanbul to ISTANBUL without the dot and lowercases IŞIK to işik. Select Turkish under Letter rules and this tool maps both pairs correctly in either direction. Keep Standard selected for English text, or words such as INFO would get a dotless i.

The tool sets no limit of its own. Conversion happens in your browser, so the practical ceiling is your device's memory, and even long documents usually convert in a moment. Your text is not uploaded; the page only increments an anonymous usage counter. The result appears in a separate output box, so the original remains in the input and you can try another style straight away.