Skip to content
Q3.Labs, Home

Free Tool

Case Converter

Convert text between UPPERCASE, lowercase, Sentence case, Title Case and programming styles like camelCase, snake_case and kebab-case. Paste your text, choose a case, and copy the result. It all happens in your browser, and your text is never uploaded.

  • Free
  • · No signup
  • · Nothing uploaded
  • · 14 text & code cases

Private by design. Your text is converted locally in your browser. It is not uploaded to Q3 Labs, not stored, not put in the URL, and never sent to analytics. No account is needed.

0 characters · 0 words · 0 lines

Choose a case

Text

Programming

What is a case converter?

A case converter rewrites text in a different letter case or naming style, so you don't have to retype it. Writers use one to fix text typed with caps lock on, to format headlines, or to tidy up copied content. Developers use one to turn a phrase into a variable name, a URL slug or a constant.

There are two families of "case". Text cases (uppercase, lowercase, sentence, title) change capitalization inside normal writing and keep the spaces, punctuation and line breaks. Programming cases (camelCase, snake_case and friends) turn a phrase into a single identifier with no spaces, following a naming convention.

Text cases with examples

These examples are produced by the same conversion code the tool above uses.

Text case conversion examples
CaseInputResult
UPPERCASEhello worldHELLO WORLD
lowercaseHELLO WORLDhello world
Sentence casehello WORLD. THIS is a TEST.Hello world. This is a test.
Title Casethe quick brown fox jumps over the lazy dogThe Quick Brown Fox Jumps Over the Lazy Dog
Capitalized Casehello world from q3 labsHello World From Q3 Labs
aLtErNaTiNg CaSehello worldHeLlO WoRlD
InVeRsE CaSeHello WorldhELLO wORLD

Uppercase vs lowercase

UPPERCASE turns every letter into a capital, and lowercase turns every letter into its small form. They're the simplest conversions, and they change nothing but the letters: digits, punctuation, spacing and line breaks stay put. Use uppercase for emphasis, acronyms and constants, and lowercase to normalize text, for example before comparing or searching it.

Long stretches of all capitals are harder to read, so avoid them for body text.

Sentence case

Sentence case is how you normally write: the first letter of each sentence is a capital and the rest is lower case. This converter lower-cases the text and then capitalizes the first letter of the text, of every new line or paragraph, and of every sentence that follows a full stop, question mark, exclamation mark or ellipsis.

It's a rule of thumb, not grammar. It can't know that "london" or "q3 labs" should keep their own capitalization, and it will treat the text after an abbreviation like "e.g." as a new sentence, so give the result a quick read.

Title Case

Title case is used for headlines, book titles and headings. There is no single universal standard: different style guides make different choices about which short words to leave lower case, how to treat hyphenated words and what to do after a colon.

This converter uses one simple, predictable rule. Every word is capitalized except these small words: a, an, the, and, or, but, for, nor, on, at, to, from, by, in, of. Those stay lower case unless they are the first or last word of a line, or come right after a colon. The rest of each word is lower-cased. If your style guide differs, treat the result as a starting point.

Capitalized Case

Capitalized Case is simpler than title case: the first letter of every word is a capital and the rest is lower case, with no exceptions for small words. It suits names, labels and menu items. Compare "The Lord of the Rings" (title case) with "The Lord Of The Rings" (capitalized case).

camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE

Programming naming styles join the words of a phrase into one identifier. Here is how "Q3 Labs Website Development Project" looks in each one. These are generated by the same code as the tool.

Programming case examples
CaseResultCommonly used for
camelCaseq3LabsWebsiteDevelopmentProjectVariables and functions in JavaScript, Java and others
PascalCaseQ3LabsWebsiteDevelopmentProjectClasses, types and UI components
snake_caseq3_labs_website_development_projectPython and Ruby variables, database columns
kebab-caseq3-labs-website-development-projectURLs, CSS classes and file names
CONSTANT_CASEQ3_LABS_WEBSITE_DEVELOPMENT_PROJECTConstants and environment variables
dot.caseq3.labs.website.development.projectConfiguration keys and namespaces
path/caseq3/labs/website/development/projectRoute paths and folder structures

camelCase starts with a lower-case word and capitalizes each following word. PascalCase capitalizes every word, including the first. snake_case and kebab-case use underscores or hyphens between lower-case words. CONSTANT_CASE is snake_case in capitals.

How the programming cases split your text

Before joining, the converter breaks each line into words. It treats these as word boundaries:

  • spaces, tabs, hyphens, underscores, periods, slashes and other punctuation;
  • camelCase and PascalCase humps, so helloWorld becomes hello + World;
  • acronyms followed by a word, so XMLParser becomes XML + Parser.

Letters and digits stay together (Q3 is one word), numbers are always kept, and apostrophes inside words are dropped (don't becomes dont). Emoji and symbols act as separators and are removed. This is a practical rule-based approach and not a linguistic analysis, so unusual names such as "O'Neil" may split in surprising ways.

When to use each text case

  • UPPERCASE: acronyms, short labels, emphasis. Use sparingly.
  • lowercase: normalizing text, email addresses, tags and search terms.
  • Sentence case: body copy, button text, and headings in a calm, modern style.
  • Title Case: headlines, book and article titles, some navigation labels.
  • Capitalized Case: names, product lists and menu items.
  • aLtErNaTiNg and InVeRsE: stylistic or playful text; not for anything that needs to be read easily.

Text case for programming and for writing

For programming, case is part of the syntax and the culture of a language: JavaScript favours camelCase for variables and PascalCase for components, Python favours snake_case, CSS and URLs favour kebab-case, and constants are usually CONSTANT_CASE. Following a project's convention keeps code readable. If you're building software, our web development team works with these conventions every day.

For writing, case is about readability and tone. Consistent capitalization in headings, buttons and lists makes content look professional, and it matters for content marketing and SEO copy where headlines are the first thing people read.

How to convert text case

  1. Enter your text. Type or paste into the box. Use "Try an example" if you just want to see it work.
  2. Choose a case. The result updates instantly and stays in step as you keep typing.
  3. Copy the result. Press Copy, or "Use result as input" to convert it again in another case.
  4. Compare. Tick "Show every case at once" to see all 14 results side by side, each with its own copy button.

Unicode and other languages

The converter uses JavaScript's standard Unicode case mapping, so accented Latin letters, Greek and Cyrillic convert as you would expect, and characters without case (Chinese, Japanese, Korean, emoji) are left untouched. Combining accents stay attached to their letters.

That is basic character-level case conversion, not language-aware editorial capitalization. It doesn't know that German nouns are capitalized, that Turkish has a dotted and a dotless i, or how titles are capitalized in French or Spanish. For those, use the result as a starting point and edit it yourself.

Privacy

Conversion runs entirely in your browser. Your text isn't uploaded, isn't stored by Q3 Labs, isn't written to the URL or your browser's storage, and is never sent to analytics. Closing or refreshing the page clears it.

Frequently Asked Questions

What is a case converter?

A case converter is a tool that changes the capitalization or naming style of text. You paste text in, choose a case such as UPPERCASE, Title Case or snake_case, and it rewrites the text for you instantly.

How do I convert text to uppercase?

Paste or type your text into the box and choose UPPERCASE. Every letter that has an upper-case form is converted, and numbers, punctuation, spaces and line breaks stay exactly as they were. Then press Copy.

How do I convert text to lowercase?

Choose lowercase after entering your text. Every capital letter becomes its lower-case form. Nothing else in the text changes.

What is sentence case?

Sentence case capitalizes the first letter of each sentence and leaves the rest lower case, as in ordinary writing: "Hello world. This is a test." This tool treats the start of the text, each new line and the text after . ! ? or … as the start of a sentence. It can't recognize proper nouns, abbreviations such as "e.g.", or names, so review the result.

What is title case?

Title case capitalizes the main words of a heading. Style guides disagree on the details, especially about which small words stay lower case. This tool uses one simple, predictable rule: every word is capitalized except a, an, the, and, or, but, for, nor, on, at, to, from, by, in and of, which stay lower case unless they are the first or last word of a line or follow a colon.

What is camelCase?

camelCase joins words together with no separators. The first word is lower case and every later word starts with a capital letter: helloWorldExample. It is widely used for variable and function names in languages such as JavaScript and Java.

What is PascalCase?

PascalCase is like camelCase, but the first word is capitalized too: HelloWorldExample. It is commonly used for class, type and component names.

What is snake_case?

snake_case writes every word in lower case and joins them with underscores: hello_world_example. It is common in Python, Ruby and database column names.

What is kebab-case?

kebab-case writes every word in lower case and joins them with hyphens: hello-world-example. It is widely used for URLs, CSS class names and file names.

What is CONSTANT_CASE?

CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) writes every word in upper case joined by underscores: HELLO_WORLD_EXAMPLE. Many languages use it for constants and environment variables.

What is the difference between camelCase and PascalCase?

Only the first letter. camelCase starts with a lower-case letter (helloWorld) and PascalCase starts with an upper-case letter (HelloWorld). Which one you need depends on the naming convention of the language or project you're working in.

Can I convert a large amount of text?

Yes. The input box accepts up to 500,000 characters and converts as you type without freezing the page. Showing every case at once is limited to 20,000 characters to keep the page fast; for longer text, pick one case at a time.

Does this tool preserve line breaks?

Yes. UPPERCASE, lowercase, Sentence, Title, Capitalized, alternating and inverse case keep your spacing, tabs, blank lines and paragraph structure exactly. The programming cases convert each line separately and keep the line breaks too, so a list of names becomes a list of identifiers.

Is the text uploaded?

No. Conversion happens entirely in your browser with JavaScript. There's no server request involved, and your text isn't put in the URL or saved in your browser's storage.

Does Q3 Labs store my text?

No. Q3 Labs never receives your text, so there is nothing to store. If you accept analytics, only generic actions such as "a case was chosen" or "result copied" are counted, never your text, the converted text or its length.

Can I use this for programming?

Yes. camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case and path/case split your text into words first, including text that is already in camelCase, PascalCase or uses hyphens, underscores, dots or slashes, and then join them in the chosen style. Always check the result against your language's rules, since valid identifiers can't start with a digit in most languages.

Does case conversion work with Unicode?

Yes, to the extent JavaScript's standard Unicode case mapping supports it. Accented letters and scripts with case, such as Greek and Cyrillic, convert correctly, and scripts without case, such as Chinese or Japanese, are left alone. It is not language-aware: it doesn't apply locale-specific rules (for example Turkish dotted and dotless i) or language-specific title-case conventions.

Why did "straße" become "STRASSE"?

In standard Unicode case mapping the German letter ß has no single capital form, so upper-casing it gives SS. This is how JavaScript, and therefore this tool, defines upper case.

What happens to punctuation and emoji?

In text cases such as Title or UPPERCASE, punctuation and emoji are kept as they are. In programming cases they're treated as word separators and removed, because identifiers can't contain them. Numbers are always kept.

Explore more

Count what you've written with the Character Counter or the Word Counter. Generate identifiers with the UUID Generator, or create a strong login with the Password Generator. Need a URL rather than kebab-case? The Slug Generator also removes punctuation and accents. To repeat text many times, try the Text Repeater. To check two lists for differences and duplicates, use Compare Lists. Browse all our free tools.

Keep exploring

Related services

  • Content MarketingMost content programs produce volume without strategy: articles that rank for nothing and convert no one.
  • Web DevelopmentSlow, hard-to-maintain websites quietly cap growth by hurting Core Web Vitals, SEO, and conversion rate.

Guides & articles

Tools

We use cookies for analytics to understand site usage. Privacy Policy