🔤 Text Case Converter

Convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, or aLtErNaTiNg CaSe — instantly, free.

✍️ Your Text
Words: 0 Characters: 0
📋 Result
Guide

About the Text Case Converter

Last updated: July 2026 · Reviewed by the NeftCal editorial team

This text case converter transforms any block of text into nine common capitalization and naming styles with a single click: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and the joke-friendly aLtErNaTiNg CaSe. It's useful for writers formatting headings, developers renaming variables between coding conventions, and anyone who needs to quickly reformat pasted text without retyping it.

How It Works

UPPERCASE and lowercase simply change every letter's case. Title Case capitalizes the first letter of each word and lowercases the rest. Sentence case lowercases everything, then capitalizes the first letter of the string and the first letter after each sentence-ending punctuation mark (. ! ?). camelCase and PascalCase split the text into words (on spaces, hyphens, and underscores), then join them back together with no separator — camelCase lowercases the first word and capitalizes the rest, while PascalCase capitalizes every word including the first. snake_case and kebab-case both lowercase the text and replace word separators with an underscore or hyphen respectively. aLtErNaTiNg CaSe alternates upper and lower case letter by letter, skipping non-letter characters when deciding which case comes next.

Why It Matters

Different contexts expect different casing: headings and titles often use Title Case, JavaScript variables typically use camelCase, Python variables and database columns typically use snake_case, and URLs and CSS classes typically use kebab-case. Converting by hand is tedious and error-prone, especially for longer text — this tool does it instantly and correctly every time.

Tips for Accurate Results

  • For camelCase and PascalCase, use spaces, hyphens, or underscores between words in your input so the tool can correctly detect word boundaries.
  • Sentence case treats ., !, and ? followed by a space as sentence boundaries — unusual punctuation or abbreviations (like "Dr. Smith") may occasionally be capitalized differently than you'd expect.
  • Use the live word and character counts below the input box to keep track of text length as you edit.
  • Use the Copy Result button to grab the converted text without manually selecting it from the output box.
About

How Text Case Conversion Works

The exact transformation logic behind each of the nine case formats this tool supports

🔠

UPPERCASE & lowercase

These simply call JavaScript's built-in .toUpperCase() or .toLowerCase() on the entire string, changing every letter's case with no word-boundary logic involved.

🔤

Title Case

A regular expression matches each "word" token in the text, then capitalizes its first character and lowercases the rest — applied independently to every word, including short ones.

📝

Sentence case

The whole string is lowercased first. Then the converter capitalizes the first letter of the string and the first letter following any ".", "!", or "?" that's followed by whitespace, treating those as sentence boundaries.

🐫

camelCase & PascalCase

The text is split into words on spaces, hyphens, and underscores, then rejoined with no separator. camelCase lowercases the first word and capitalizes the rest; PascalCase capitalizes every word, including the first.

🐍

snake_case & kebab-case

Both lowercase the entire string, then replace runs of spaces and the other separator character with a single underscore (snake_case) or hyphen (kebab-case).

🎭

aLtErNaTiNg CaSe

The converter walks through the string character by character, tracking a counter that only advances on letters. Even-count letters are lowercased and odd-count letters are uppercased; spaces and punctuation pass through unchanged and don't affect the count.

Walkthrough

Step-by-Step: How to Use the Text Case Converter

From pasting your text to copying the converted result

Paste or type your text

Enter or paste the text you want to convert into the "Your Text" box. The live word and character counts update as you type.

Select the target case format

Click one of the nine case buttons — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, or aLtErNaTiNg CaSe.

View the converted output

The converted text appears instantly in the "Result" box below — nothing to submit or wait for.

Copy the result

Click "Copy Result" to copy the converted text straight to your clipboard, ready to paste wherever you need it.

Clear and start over

Click "Clear" to empty both the input and result boxes and convert a new piece of text.

Example

Worked Example

Converting the same input through all nine supported case formats

Scenario A — converting a phrase into every supported case

Suppose you type "the quick brown fox" into the input box and click through each case button in turn.

Case FormatResult
UPPERCASETHE QUICK BROWN FOX
lowercasethe quick brown fox
Title CaseThe Quick Brown Fox
Sentence caseThe quick brown fox
camelCasetheQuickBrownFox
PascalCaseTheQuickBrownFox
snake_casethe_quick_brown_fox
kebab-casethe-quick-brown-fox
aLtErNaTiNg CaSetHe QuIcK bRoWn FoX
Note on Sentence case: since the input has no sentence-ending punctuation, only the very first letter gets capitalized — the rest stays lowercase.
Note on camelCase/PascalCase: the four space-separated words are detected as word boundaries, then rejoined with no separator and re-capitalized according to each rule.

Scenario B — renaming a variable across programming naming conventions

Suppose a developer types "user account balance" to generate the same identifier in four different naming conventions.

camelCase
userAccountBalance
PascalCase
UserAccountBalance
snake_case
user_account_balance
kebab-case
user-account-balance

Explanation: Because the converter splits on spaces, hyphens, and underscores before rebuilding each case format, typing your words separated by plain spaces is the most reliable way to get correct output regardless of which case button you click next — you can generate a JavaScript variable name, a Python variable name, and a URL slug from the exact same input without retyping anything.

Interpretation

Understanding Your Result

Which case format is the professional or technical standard for different contexts

Different fields have settled on different casing conventions, and using the "expected" one signals attention to detail. Headlines, book and article titles, and navigation menu labels are conventionally set in Title Case, while body copy, form field descriptions, and error messages should almost always read in ordinary Sentence case. UPPERCASE is reserved for emphasis, warning labels, or short constants — using it for long passages reads as shouting and can trip spam filters in emails.

In software, casing is often a hard requirement rather than a stylistic choice: JavaScript, Java, and Swift conventionally name variables and functions in camelCase, while classes, types, and React components use PascalCase. Python and Ruby favor snake_case for variables and function names, which is also the standard for SQL and NoSQL database column names. kebab-case dominates URL slugs, CSS class names, and HTML/XML attribute names, since hyphens are safe and readable in a URL where underscores can be visually confused with spaces. aLtErNaTiNg CaSe has no technical use — it's purely an informal, sarcastic style seen in memes and social posts.

Use Cases

Practical Use Cases for the Text Case Converter

Where converting text case quickly and correctly actually saves time

💻

Renaming variables between naming conventions

Developers converting a variable or function name between camelCase, snake_case, and kebab-case when porting code between languages.

✍️

Formatting headlines and article titles

Writers and editors converting a working title into proper Title Case before publishing.

🎓

Formatting essay and assignment titles

Students formatting an essay or report title to match a teacher's or style guide's capitalization requirement.

📱

Writing ALL CAPS emphasis posts

Social media managers converting a short phrase to UPPERCASE for a promotional or announcement post.

🔧

Fixing accidentally-capslocked text

Content editors instantly fixing text typed with Caps Lock stuck on, without retyping it from scratch.

🗄️

Formatting database and API field names

Backend developers formatting JSON keys, API parameters, or database columns in consistent snake_case or camelCase.

🔗

Formatting SEO-friendly URL slugs

SEO writers converting a page title into a clean kebab-case URL slug.

📄

Formatting resume section headers

Job seekers formatting resume headings like "Work Experience" or "Education" consistently in Title Case.

📧

Writing email subject lines

Marketers formatting campaign subject lines in Title Case or Sentence case to match brand style.

🔄

Converting naming conventions across languages

Programmers translating identifier names between languages that favor different casing standards (e.g. Python's snake_case vs Java's camelCase).

⚖️

Formatting legal document headings

Paralegals and legal writers formatting section headings and defined terms consistently throughout a document.

📚

Formatting academic citations and references

Researchers standardizing the capitalization of titles in a bibliography or reference list.

🏷️

Naming CSS classes and HTML attributes

Front-end developers formatting class names and data attributes in consistent kebab-case.

😆

Making a joke or sarcastic post

Anyone converting a phrase into aLtErNaTiNg CaSe for a mocking or humorous social media reply.

Pros & Cons

Advantages and Limitations

What this text case converter does well, and where automated conversion has boundaries

✅ Advantages

  • Free, instant, and requires no signup or account creation
  • Runs entirely in your browser — your text is never sent to a server
  • Supports nine common case formats in a single tool
  • Covers both writing-focused formats (Title Case, Sentence case) and code-focused formats (camelCase, PascalCase, snake_case, kebab-case)
  • Converts long passages just as easily as single words
  • Live word and character counts as you type
  • One-click copy of the converted result
  • Eliminates tedious, error-prone manual retyping
  • Consistent, repeatable results every time
  • No installation, extension, or plugin required
  • Fast-loading and works on desktop and mobile
  • Useful across writing, coding, and social media contexts alike

⚠️ Limitations

  • Title Case rules vary slightly by style guide — some (like Chicago or AP) keep short prepositions and articles lowercase, while this tool capitalizes every word
  • Automated case conversion doesn't recognize acronyms or proper nouns, so names like "NASA" or "McDonald's" may come out incorrectly cased
  • Doesn't check grammar, spelling, or punctuation — it only changes letter case
  • Sentence case relies on ". ! ?" punctuation to detect sentence boundaries, so unusual abbreviations can be mis-capitalized
  • camelCase and PascalCase need clear word separators (spaces, hyphens, underscores) in the input to detect word boundaries correctly
  • Case conversion is one-way — the tool doesn't remember or restore your original capitalization automatically
  • aLtErNaTiNg CaSe has no technical or professional use beyond informal, stylistic text
Reference

Case Format Reference Table

All nine supported case formats, with an example and where each is typically used

Case FormatExampleTypical Use Context
UPPERCASETHE QUICK BROWN FOXEmphasis, warning labels, constants, acronyms
lowercasethe quick brown foxCasual text, some URL paths, email addresses
Title CaseThe Quick Brown FoxHeadlines, article and book titles, menu labels
Sentence caseThe quick brown foxBody text, standard prose, form labels and messages
camelCasetheQuickBrownFoxJavaScript, Java, and Swift variable/function names
PascalCaseTheQuickBrownFoxClass names, types, and React/Vue component names
snake_casethe_quick_brown_foxPython and Ruby variables, SQL database column names
kebab-casethe-quick-brown-foxURL slugs, CSS class names, HTML/XML attributes
aLtErNaTiNg CaSetHe QuIcK bRoWn FoXInformal, sarcastic social media text

Common Mistakes and Expert Tips

❌ Common Mistakes

  • Using the wrong naming convention for a programming language's style guide (e.g. camelCase in Python instead of snake_case)
  • Assuming Title Case correctly capitalizes every word per a specific style guide, when it capitalizes all words uniformly
  • Forgetting that acronyms and proper nouns get incorrectly lowercased or re-cased by automated tools
  • Typing words with no spaces, hyphens, or underscores between them, so camelCase/PascalCase can't detect word boundaries
  • Treating Sentence case as a grammar or spell checker instead of a pure capitalization tool
  • Using UPPERCASE for long blocks of body text instead of short emphasis phrases
  • Not reviewing output for acronyms, abbreviations, or brand names after converting

💡 Expert Tips & Best Practices

  • Separate words with plain spaces before converting to camelCase, PascalCase, snake_case, or kebab-case for the most reliable word-boundary detection
  • Manually re-capitalize acronyms and proper nouns after any automated conversion
  • Use kebab-case for URL slugs and CSS classes, and snake_case for database columns, to match near-universal conventions
  • Match your Title Case output against your organization's specific style guide if strict compliance matters
  • Keep a copy of your original text before converting, since case conversion is one-way
  • Pair this tool with the Word & Character Counter when you need exact length limits alongside case formatting
📝

Summary: This text case converter instantly transforms text into nine common formats — from writing-focused UPPERCASE, lowercase, Title Case, and Sentence case, to code-focused camelCase, PascalCase, snake_case, and kebab-case, plus the informal aLtErNaTiNg CaSe — entirely in your browser, with no signup required. Pair it with the Word & Character Counter for length checks or the Roman Numeral Converter for other text/number formatting needs.

FAQ

Frequently Asked Questions

Common questions about text case conversion

What's the difference between Title Case and Sentence case?
Title Case capitalizes the first letter of every word (e.g. "This Is A Title"), commonly used for headings. Sentence case capitalizes only the first letter of each sentence, like normal prose (e.g. "This is a sentence. Here is another.").
When would I use camelCase vs PascalCase?
camelCase (first word lowercase, each following word capitalized, no spaces, e.g. "myVariableName") is the common convention for variable and function names in JavaScript and Java. PascalCase (every word capitalized, no spaces, e.g. "MyClassName") is typically used for class and type names.
What are snake_case and kebab-case used for?
snake_case (lowercase words joined with underscores, e.g. "my_variable_name") is common in Python and database column names. kebab-case (lowercase words joined with hyphens, e.g. "my-variable-name") is common in URLs, CSS class names, and HTML attributes.
Does this tool store or upload my text?
No. All text conversion happens instantly in your browser using JavaScript — nothing is sent to a server, logged, or saved. Refreshing or closing the page discards everything you typed.
What does aLtErNaTiNg CaSe do, and when would I use it?
aLtErNaTiNg CaSe alternates between lowercase and uppercase for each letter in your text, skipping spaces and punctuation when deciding which case comes next. It's mostly used informally on social media to convey a mocking or sarcastic tone (sometimes called "mocking SpongeBob case"), rather than for any technical or professional purpose.
How does Sentence case decide where one sentence ends and the next begins?
The converter lowercases the entire text first, then capitalizes the very first letter of the string and the first letter following a period, exclamation mark, or question mark that's followed by whitespace. Because it relies on punctuation rather than true language understanding, unusual abbreviations (like "Dr." or "e.g.") may occasionally be capitalized when you wouldn't expect.
Does Title Case correctly handle small words like "a," "the," and "of"?
No — this converter's Title Case capitalizes the first letter of every word, including short articles and prepositions. Style guides like the Chicago Manual of Style or AP Stylebook recommend keeping some short words lowercase in headline-style titles, so you may need to manually lowercase a few words afterward for strict style-guide compliance.
Will the converter capitalize acronyms like NASA or USA correctly?
Not automatically. Title Case, Sentence case, camelCase, and PascalCase all lowercase the non-first letters of each word, so an acronym like "NASA" becomes "Nasa" in Title Case or gets buried mid-word in camelCase. Review and manually fix acronyms and proper nouns after converting.
Can I use this tool to rename programming variables between naming conventions?
Yes. Type a variable name using spaces, hyphens, or underscores between words (e.g. "user account balance"), and convert it to camelCase, PascalCase, snake_case, or kebab-case to match the naming convention used by your programming language or style guide.
Why do I need spaces, hyphens, or underscores in my input for camelCase and PascalCase to work?
camelCase and PascalCase are built by first splitting your text into individual words wherever a space, hyphen, or underscore appears, then rejoining those words with no separator. If your input has no separators at all, the converter can't detect the word boundaries and will treat it as one long word.
Is there a limit to how much text I can convert at once?
No hard limit is enforced — you can paste anything from a single word to several paragraphs. Very long text simply takes up more space in the input and output boxes; conversion itself is instant regardless of length.
Can I convert my text back to the original after converting it?
Not automatically — case conversion is a one-way transformation, and some conversions (like UPPERCASE or snake_case) discard information about the original capitalization. Keep a copy of your original text elsewhere, or leave it in the input box, before converting if you might need it back.
Does the text case converter work on mobile devices?
Yes. The tool is fully responsive and works in any modern mobile browser — type or paste text, tap a case button, and tap Copy Result the same way you would on desktop.
Is this text case converter free to use?
Yes, completely free with no signup, account, or usage limit. It runs entirely in your browser using JavaScript.
Learn More

Authoritative Resources on Writing Style and Naming Conventions

Real style guides and programming references that complement this calculator

Related Calculators

Explore other text & number utilities