Text Case Converter

Change the case of any text and count words and characters, all in your browser.

How it works

Type or paste any text into the box and pick one of the case styles — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case or kebab-case. The transformed text replaces what you typed, in place, instantly, and a live counter updates the word, character and line counts as you edit. A Copy button puts the result on your clipboard in one click. Every transformation runs entirely in your browser with no upload, so even long or sensitive text stays on your device. The word and character count is handy on its own for checking against length limits on forms, posts and metadata.

Case styles explained

UPPERCASE and lowercase do exactly what they say, affecting every letter in the text. Title Case capitalises the first letter of every word, useful for headings and titles. Sentence case capitalises only the first letter of each sentence plus the first letter after a period, exclamation mark or question mark — the natural style for prose. The programming styles turn a phrase into a single identifier: camelCase joins words with capitalised initials except the first (myVariableName), while snake_case and kebab-case join lowercase words with underscores or hyphens (my_variable_name, my-variable-name) — common for file names, database columns and URL slugs.

How to convert a piece of text

Select all content in the box and clear it if you're starting fresh, or keep the sample text and replace it. Paste or type the text you want to change, then click the case button that matches your goal. The output appears right where your input was, so you can keep editing or re-run a different style. When you are happy, click Copy to grab the result and paste it wherever you need — a document, a form, a code editor or a content management system. Because everything happens in place, converting back or trying another style takes only a second.

A concrete example

Imagine you have a blog post title written as the ultimate guide to bbq and you want a clean heading plus a folder name for its assets. Click Title Case and the box becomes The Ultimate Guide To BBQ, ready to paste as a heading. Then click kebab-case on the same text to get the-ultimate-guide-to-bbq, a ready-made URL slug. If the same phrase needs to become a JavaScript variable, camelCase turns it into theUltimateGuideToBbq. Since all three operations happen on the same text in place, you can produce every variant you need in a matter of seconds without re-typing a single word.

What to expect

The counter below the box shows three live numbers as you edit: words, characters and lines. Words are counted as runs of non-space characters, so spacing does not inflate the total; characters count every symbol including spaces and punctuation; and lines count the number of lines, showing zero when the box is empty. The four text styles — UPPERCASE, lowercase, Title and Sentence case — preserve punctuation and spacing, while the three identifier styles (camelCase, snake_case, kebab-case) keep only letters and numbers and strip everything else, because those formats require a clean identifier with no spaces. Both the input and output stay entirely on your device; nothing is uploaded to a server.

Common problems and fixes

camelCase, snake_case or kebab-case dropped my punctuation — that is by design: identifier styles keep only letters and numbers, so apostrophes, hyphens and symbols are removed as required for a valid identifier. The word count seems lower than expected — the tool counts words as runs of non-space characters, which is the standard approach most editors use, so repeated spaces or line breaks won't inflate it. Title Case upper-cased a word like "of" or "the" — the tool capitalises the first letter of every word without an exception list, so short words stay capitalised; if you want a conventional title, adjust those manually. Sentence case didn't capitalise after a colon — only the first letter and letters following a period, exclamation or question mark are capitalised, so a colon or line break won't trigger a capital unless it follows one of those punctuation marks.

Frequently asked questions

Does it keep my punctuation?

UPPERCASE, lowercase, Title and Sentence case preserve punctuation and spacing. The identifier styles (camel, snake, kebab) keep only letters and numbers, as those formats require.

How are words counted?

A word is any run of non-space characters, so the count matches most editors. Multiple spaces and line breaks don't inflate it.

Is my text uploaded?

No. All conversion and counting happen locally in your browser; nothing you type is sent anywhere.

Why did snake_case remove my hyphens and apostrophes?

snake_case, kebab-case and camelCase produce clean identifiers, so they keep only letters and numbers and strip punctuation and spaces. Use UPPERCASE, lowercase, Title Case or Sentence case if you need to keep the original punctuation.

Does camelCase keep capital letters inside my input?

No. camelCase lowercases every word, capitalises the initial of each one after the first, and joins them without separators, so the whole result is a single identifier regardless of how the input was written.

Can I change just part of my text?

The tool transforms everything currently in the box. If you only want part converted, edit the box so only that portion remains, run the style, then add the rest back, or keep the full text and use another style for the sections you want to preserve.