Home/Text Utilities/Text Case

Text Case Converter

Paste your text once, then switch between every common case format. Great for headlines, code identifiers, and cleaning up pasted content.

Your text

43 characters · 9 words

UPPERCASE
—
lowercase
—
Title Case
—
Sentence case
—
camelCase
—
PascalCase
—
snake_case
—
CONSTANT_CASE
—
kebab-case
—

How the text case converter works

Type or paste any text into the box and every format updates instantly, with nothing to click and nothing to submit. The conversion runs entirely in your browser, so the text you paste never leaves your device. Each result appears on the right in its own row, ready to select and copy into a document, a spreadsheet, or a code editor.

Some formats only change letter case, while others also rebuild your text as a single identifier. That difference matters, so here is exactly what each one does.

What each format does

The last five formats are built for code, file names, and URLs, so they drop punctuation and convert accented letters to plain ones. For example, café becomes cafe.

Worked example

The default sentence in the box is easy, so here is a harder one with an apostrophe, a colon, a hyphen, and an accented letter: don't stop: the well-known café menu. The converter returns:

Notice the difference between the two groups. The first four keep your punctuation and accents intact. The code formats remove the apostrophe and the colon, treat the hyphen as a word break, and turn é into e. The result is a clean identifier you can paste straight into a variable name, a file name, or a URL.

When to use each case

Headlines and labels. Title Case is common for article titles, book titles, and headings. Sentence case reads more naturally and is popular for buttons, menu items, and interface text. UPPERCASE works for short labels and acronyms, but long stretches of capitals are harder to read and often come across as shouting.

Programming. Conventions vary by language, but a few are widespread. JavaScript, Java, and Swift use camelCase for variables and functions. PascalCase is the norm for class names in those languages and in C#. Python uses snake_case for variables and functions, following its PEP 8 style guide. CONSTANT_CASE marks values that never change in many languages.

URLs and file names. Lowercase kebab-case is the safest choice. Google recommends hyphens rather than underscores to separate words in a URL, and spaces turn into %20 in web addresses. CSS class names and HTML attributes also commonly use kebab-case.

Tips for cleaner results

Related tools

To check length limits for a post, essay or meta description, paste your text into the word and character counter. Need a strong password or a random pick? Try the password generator and the random number generator.

Frequently asked questions

Does this tool store or send my text anywhere?

No. All conversion happens directly in your browser using JavaScript. Nothing is uploaded or saved.

How does Title Case handle small words like "the" or "of"?

This converter capitalizes every word for simplicity. For strict editorial style guides that lowercase certain short words, you may want to adjust a few words manually afterward.

Does this handle special characters, accents, or non-English text?

UPPERCASE, lowercase, Title Case, and Sentence case keep accented letters and non-English text intact, so crème brûlée becomes Crème Brûlée in Title Case. The code formats (camelCase, PascalCase, snake_case, CONSTANT_CASE, and kebab-case) convert accented Latin letters to plain ones, so é becomes e, and they drop any other characters that are not letters or numbers, since identifiers and URLs typically cannot contain them. Text in alphabets without Latin letters, such as Cyrillic, Arabic, or Chinese, is removed by those five formats.

What's the difference between camelCase and PascalCase?

camelCase starts with a lowercase letter (theQuickBrownFox), while PascalCase capitalizes the first letter too (TheQuickBrownFox). This tool outputs both, so you can copy whichever your language or style guide expects.

Can I convert text back to its original form?

Not automatically. Case conversion is one-directional, and some information, like the original capitalization pattern, is lost once you convert. Keep a copy of your original text if you might need it again.

Why did iPhone or NASA change when I converted my text?

Each format rebuilds the letter case from scratch, so it has no way of knowing that a word is a brand name or an acronym. In Title Case, iPhone becomes Iphone and NASA becomes Nasa. Fix those words by hand after converting, or use UPPERCASE for the whole line if that suits your text.

Which case format is best for URLs and file names?

Lowercase kebab-case, such as my-blog-post.html. Hyphens are the separator Google recommends in URLs, they are easy to read, and they avoid the %20 that spaces produce in web addresses. Use the kebab-case result and you can paste it straight into a URL slug or a file name.

Is there a limit on how much text I can convert?

The tool does not set a limit of its own. Because everything runs in your browser, extremely large pastes, such as hundreds of thousands of words, may make the page slow depending on your device. For everyday use, such as headlines, paragraphs, and full articles, it responds instantly.