Case Converter
The Case Converter instantly transforms your text into every common case style — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE — each with a one-click copy button. Title Case has no small-word exception list — every word matched by \b\w+ gets its first letter capitalized and the rest forced to lowercase, so an acronym like "NASA" comes out as "Nasa" rather than staying all-caps. Word-splitting (used for Title Case and every programmer-case output) only recognizes letters and digits as word characters, so an apostrophe in a contraction breaks it into two separate "words" that each get capitalized — "don't" becomes "Don'T" in Title Case and "don_t" in snake_case. Sentence case lowercases the entire string first, then re-capitalizes only the single character at the very start and immediately after each ./!/?, so it doesn't special-case the pronoun "I" or preserve acronym casing anywhere mid-sentence.
UPPERCASE
THE QUICK BROWN FOX
lowercase
the quick brown fox
Title Case
The Quick Brown Fox
Sentence case
The quick brown fox
camelCase
theQuickBrownFox
PascalCase
TheQuickBrownFox
snake_case
the_quick_brown_fox
kebab-case
the-quick-brown-fox
CONSTANT_CASE
THE_QUICK_BROWN_FOX
Converts your text into every common case style instantly. Great for code (camelCase, snake_case), headings (Title Case), and constants (CONSTANT_CASE). Everything runs in your browser.
How This Tool Works
Type or paste your text and every case style is generated at once below it. Click the copy button next to any style to grab that version.
Formula & Method
The tool applies standard casing rules to your text: upper/lowercasing every letter, capitalizing the first letter of each word (Title) or sentence (Sentence), and splitting into words to rebuild programmer styles like camelCase, snake_case, and kebab-case.
Example Calculation
Type "don't stop the NASA mission" and every style updates at once: UPPERCASE gives "DON'T STOP THE NASA MISSION"; lowercase gives "don't stop the nasa mission"; Title Case gives "Don'T Stop The Nasa Mission" (the apostrophe splits "don't" into two capitalized fragments, and "NASA" loses its all-caps styling); Sentence case gives "Don't stop the nasa mission" (only the very first letter is capitalized — "nasa" stays lowercase since it isn't at a sentence start); camelCase gives "donTStopTheNasaMission"; PascalCase gives "DonTStopTheNasaMission"; snake_case gives "don_t_stop_the_nasa_mission"; kebab-case gives "don-t-stop-the-nasa-mission"; and CONSTANT_CASE gives "DON_T_STOP_THE_NASA_MISSION".
About the Case Converter
Text case sounds trivial until you have retyped a 300-word paragraph because it was pasted in capitals, or hand-converted a phrase into a variable name for the fifth time. A case converter does these rewrites in one step. This page takes whatever you type and shows nine versions at once: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE. Each version has its own Copy button, so you pick the one you need and move on.
The nine styles fall into two families. The first four are prose styles that keep your spaces and punctuation and only change which letters are capitalized. The last five are programmer styles, which throw away spaces and punctuation, split the text into words, and glue those words back together with a convention that identifiers can legally contain: capital letters, underscores, or hyphens. Those conventions are not arbitrary. Languages, frameworks, file systems, and URLs each have preferred styles, and following them keeps code and filenames consistent.
Writers, students, marketers, developers, and data cleaners all end up here for different reasons. A shouting email subject needs to become Sentence case, a spreadsheet column header needs to become snake_case for a database import, and a blog headline needs Title Case. The converter works on letters and digits in the basic English alphabet, and the sections below spell out where its rules are simple on purpose, such as acronyms, contractions, and accented characters, so you know what to check before you copy.
When to Use It
Fixing text typed with Caps Lock on
You answer a long customer email only to notice the draft is in capitals. Paste it in, copy the Sentence case result, and the whole message is lowercase with capitals restored at the start and after each period, exclamation mark, or question mark. Then you only need to repair proper nouns and the pronoun I.
Naming variables, functions, and constants
A developer has a description such as "maximum retry count" and needs three forms: maxRetryCount for a JavaScript variable, max_retry_count for a Python function or database column, and MAX_RETRY_COUNT for a constant. Typing the phrase once and copying each row avoids transcription slips and keeps a codebase consistent.
Building URL slugs and filenames
A content editor turns the headline "Spring Garden Checklist 2025" into a slug. The kebab-case row gives spring-garden-checklist-2025, which is lowercase, contains no spaces or punctuation, and reads well in a link. The same row works for CSS class names, many static-site folder names, and image filenames.
Cleaning headers before a data import
An analyst receives a spreadsheet whose column titles look like "Order Date" and "Unit Price ($)". Importing into a database or a data frame is easier with snake_case names, so each header is pasted in and the snake_case row copied, giving order_date and unit_price without spaces or symbols that need quoting.
How to Use It, Step by Step
- Click into the box labeled "Your text". It starts with the sample sentence "The quick brown fox", so select all of it first and then type or paste your own text over it.
- Paste or type the text you want to convert. It can be a single word, a phrase, or several sentences; line breaks are allowed, and the converted rows update on every keystroke.
- Scan the nine rows below the box: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE. Your original text in the box is never modified.
- Check the row you need for anything surprising, especially acronyms, contractions, or accented letters, because those are handled by simple rules described in this page.
- Long results are cut off with an ellipsis in the row. Hover over the text to see the full value in a tooltip; the Copy button always copies the complete string, not the shortened view.
- Press the Copy button at the right of the row you want. It briefly changes to "Copied" to confirm. If your browser blocks clipboard access, select the text in the row and copy it manually.
- Paste the result where you need it, then proofread proper nouns, acronyms, and the word I, which the prose styles do not recognize.
Understanding Your Results
The four prose rows keep the shape of your text. UPPERCASE and lowercase simply change every letter. Title Case capitalizes the first letter of every word and lowercases the rest, with no list of small words, so "of" and "the" are capitalized too. Sentence case lowercases everything and then capitalizes the first letter of the text and the first letter after each period, exclamation mark, or question mark. A colon does not start a new sentence, so the word after a colon stays lowercase.
The five programmer rows discard everything except letters and digits. The text is cut into runs of A-Z, a-z, and 0-9, and those runs become the words. Anything else, including spaces, apostrophes, hyphens, underscores, punctuation, and accented letters, acts as a separator and is dropped. That is why "version 2.1" becomes version_2_1: the period splits the digits into separate words. The converter also does not detect word boundaries inside an existing camelCase word, so getHTTPResponse is treated as one word.
As a sanity check, count the words you expect and compare them with the underscores or hyphens in the snake_case or kebab-case row; there should be one fewer separator than words. If the count is off, look for apostrophes, accented letters, or digits that split a word you wanted whole, fix those in the input box, and the rows update immediately.
More Worked Examples
A plain phrase in all nine styles
Scenario: Text: user account balance
The prose rows give USER ACCOUNT BALANCE, user account balance, User Account Balance, and User account balance. The programmer rows give userAccountBalance for camelCase, UserAccountBalance for PascalCase, user_account_balance for snake_case, user-account-balance for kebab-case, and USER_ACCOUNT_BALANCE for CONSTANT_CASE. With ordinary lowercase words and no punctuation, all nine rows behave exactly as most people expect, which makes this a good test phrase.
Punctuation, digits, and sentence boundaries
Scenario: Text: Annual report: Q3 results! see the appendix. is it done? yes
Title Case returns Annual Report: Q3 Results! See The Appendix. Is It Done? Yes. Sentence case returns Annual report: q3 results! See the appendix. Is it done? Yes. Note that "q3" stays lowercase after the colon, because a colon is not treated as a sentence ender, while "See", "Is", and "Yes" are capitalized after the exclamation mark, period, and question mark. The snake_case row is annual_report_q3_results_see_the_appendix_is_it_done_yes, with the punctuation removed.
Accented letters and existing camelCase
Scenario: Text: über café résumé naïve
Because only plain A-Z letters and digits count as word characters, accented letters break words apart. Title Case returns üBer Café RéSumé NaïVe, with capitals appearing in the middle of words after each accented letter. snake_case returns ber_caf_r_sum_na_ve, which has lost the accented letters entirely. If you convert getHTTPResponse, the result in snake_case is gethttpresponse, since the tool does not split on internal capitals. Replace accents with plain letters, and add spaces between words, before converting.
Tips for Better Results
- Add spaces between words before converting an existing camelCase or PascalCase name. Typing "get HTTP response" gives you get_http_response in snake_case, whereas getHTTPResponse stays one word.
- Replace accented letters with plain ones, such as cafe for café, before generating programmer styles or Title Case. The tool treats an accented letter as a separator, which splits and drops pieces of the word.
- For headlines in AP, Chicago, or APA style, use Title Case as a starting point and then lowercase short articles, conjunctions, and prepositions such as of, the, and in by hand.
- Use kebab-case for URLs and CSS classes, snake_case for database columns and Python names, camelCase for JavaScript variables, PascalCase for class and component names, and CONSTANT_CASE for fixed values in most languages.
- Digits count as word characters, so "2nd place" becomes 2nd_place and "version 2.1" becomes version_2_1. If you want 2.1 kept together in an identifier, edit the copied result by hand.
- After converting a long paragraph, skim the Title Case and Sentence case results for acronyms, since NASA becomes Nasa and an initialism you retype needs its capitals restored.
Common Mistakes to Avoid
- Expecting Title Case to leave acronyms alone. Every word is lowercased after its first letter, so USA becomes Usa. Retype acronyms after copying.
- Pasting an apostrophe-rich sentence into a programmer style. Contractions split into pieces, so it's turns into it_s. Remove the apostrophes or expand the contraction first.
- Treating Sentence case as grammar-aware. It does not know proper nouns, the pronoun I, or abbreviations that end with a period, so "Dr. smith" becomes "Dr. Smith" and "e.g. this" becomes "E.G. This".
- Using a programmer row for text that has accented characters or non-Latin letters. The converter keeps only A-Z, a-z, and 0-9, so such characters vanish and the result may be shorter than you expect.
- Assuming the original box has been changed. The tool never overwrites your input, so if you want to reuse the converted text, press the Copy button and paste it elsewhere.
Assumptions and Limits
- Word detection for the programmer styles uses plain ASCII letters and digits only. Text in other alphabets, or with accents, will be split or dropped, so this tool is reliable mainly for English text.
- Title Case here is mechanical: every word is capitalized, with no style-guide exceptions. It is a first draft for headlines, not a substitute for editorial rules.
- Sentence case recognizes the start of the text and the characters . ! ? as sentence boundaries. It cannot recognize names, abbreviations, or quoted sentences, so proofread the result before sending.
- Everything runs locally in your browser, so there is no length limit imposed by a server; very large documents are limited only by your device.
Key Terms
- camelCase
- A naming style that joins words with no separator and capitalizes every word except the first, such as maxRetryCount. It is the usual style for variables and functions in JavaScript and Java.
- PascalCase
- The same as camelCase, but the first word is also capitalized, as in MaxRetryCount. It is commonly used for class names and UI component names.
- snake_case
- A style that writes words in lowercase and joins them with underscores, such as max_retry_count. Python and many database schemas prefer it.
- kebab-case
- Lowercase words joined with hyphens, like max-retry-count. It is common in URLs, CSS class names, and filenames, but most programming languages cannot use it for variable names.
- CONSTANT_CASE
- Uppercase words joined with underscores, such as MAX_RETRY_COUNT. It is the conventional way to name fixed values and environment variables.
Frequently Asked Questions
What is camelCase vs snake_case?+
camelCase joins words with no spaces and capitalizes each word after the first (myVariableName); snake_case joins words in lowercase with underscores (my_variable_name). Both are common in programming.
Does it change my text or just show options?+
It shows every conversion at once without altering your original input, so you can copy whichever style you need.
Is my text private?+
Yes — all conversions happen in your browser and nothing is uploaded or stored.
Why does Title Case turn an acronym like "NASA" into "Nasa"?+
Title Case capitalizes the first letter of each word and forces every other letter in that word to lowercase, with no exception for acronyms or all-caps words. So "NASA" and "USA" become "Nasa" and "Usa" along with the rest of your text — if you need to preserve an acronym's casing, re-type it after copying the result.
Why did "don't" turn into "Don'T" or "don_t"?+
The converter treats only letters and digits as part of a word, so the apostrophe in a contraction splits it into two separate pieces — "don" and "t" — that each get processed on their own. That's why Title Case shows "Don'T" and snake_case/kebab-case/CONSTANT_CASE show "don_t"/"don-t"/"DON_T" instead of treating the contraction as one word.
Which case style should I use for variable names?+
Follow the convention of the language you are writing. JavaScript and Java usually use camelCase for variables and functions and PascalCase for classes. Python uses snake_case for functions and variables. Fixed values use CONSTANT_CASE nearly everywhere. Hyphenated kebab-case suits URLs, filenames, and CSS because most languages read a hyphen as a minus sign, so it cannot appear in an identifier. Consistency inside a project matters more than the specific choice.
Why is the word after a colon not capitalized in Sentence case?+
The converter lowercases the whole text, then capitalizes only the first character and the first letter following a period, exclamation mark, or question mark. A colon is not in that list, so the word after it stays lowercase. That matches many style guides for ordinary text, but if a heading needs a capital after a colon, capitalize that letter by hand after copying.
Why do accented letters disappear in snake_case or camelCase?+
The programmer styles split text into runs of the plain letters A to Z and the digits 0 to 9. An accented letter such as é or ü is not in that set, so it acts like a space and is dropped. The word café becomes caf. Replace accents with plain equivalents before converting if you need identifiers or slugs that keep every letter.
Can it break an existing camelCase word into separate words?+
No. The tool only splits on characters that are not letters or digits, such as spaces, hyphens, underscores, and punctuation. A name like getHTTPResponse contains no such characters, so it is treated as a single word and comes out as gethttpresponse in snake_case. To convert it properly, type spaces between the words first and then copy the row you want.
Is Title Case the same as the capitalization used in published headlines?+
Not exactly. Style guides such as AP, APA, and Chicago keep short words like a, an, the, of, in, and and in lowercase unless they begin or end the title, and they differ from each other on prepositions. This tool capitalizes every word, which is the simplest form. Use it as a quick draft, then lowercase the small words your guide requires.
Found this useful? Share it
Help someone else out — or link to it from your own site.
Link to this tool
Writing about case converter? Paste this on your site to link here.
<a href="https://everyfix.net/tools/case-converter/">Case Converter</a> by <a href="https://everyfix.net">EveryFix</a>Related Tools
Word Counter
Count words, characters, sentences, and reading time as you type.
Use tool →Lorem Ipsum Generator
Generate placeholder lorem ipsum text by paragraphs, sentences, or words.
Use tool →JSON Formatter
Format, validate, and minify JSON instantly in your browser.
Use tool →Age Calculator
Calculate your exact age in years, months, and days.
Use tool →