Skip to content
PrintablePaperKit

Case Converter

Paste your text, pick one of fifteen conversions from everyday sentence and title case to camelCase, snake_case and URL slugs, then copy the result.

  • 15 conversions
  • AP title case
  • Slug generator
Loading converter…

How to change the case of text

  1. Add your text. Paste or type into the Your text box; the word and character counts update as you go.
  2. Pick a conversion. Choose one of the fifteen buttons under Convert to, such as Sentence case, camelCase or url-slug.
  3. Tidy the spacing. Turn on Collapse repeated spaces to squeeze double spaces and trim the ends before converting.
  4. Copy or chain it. Press Copy result, or Use as input to run a second conversion on the output.

All fifteen conversions

Each button below applies to the whole text at once. The middle column shows what the phrase “hello world example” becomes.

Conversion“hello world example”Typical use
UPPER CASEHELLO WORLD EXAMPLEShort headings, signs, labels
lower casehello world exampleNormalising a list before sorting
Sentence caseHello world exampleBody copy, descriptions
Capitalise Each WordHello World ExampleNames, form labels
Title Case (AP)Hello World ExampleArticle and page titles
aLtErNaTiNghElLo WoRlD eXaMpLeJokes and mocking quotes
iNVERSE cASEHELLO WORLD EXAMPLEFixing caps-lock mistakes
camelCasehelloWorldExampleJavaScript and Java variables
PascalCaseHelloWorldExampleClasses, React components
snake_casehello_world_examplePython names, SQL columns
CONSTANT_CASEHELLO_WORLD_EXAMPLEConstants, environment variables
kebab-casehello-world-exampleCSS classes, file names
dot.casehello.world.exampleConfig keys, namespaces
url-slughello-world-examplePage addresses
esreveRelpmaxe dlrow ollehPuzzles, testing

How the conversions decide where words start

The everyday cases work on the text as you wrote it. Sentence case lower-cases everything, then capitalises the first letter of the text and the first letter after each full stop, question mark or exclamation mark followed by a space. Capitalise Each Word capitalises the first letter after every word boundary, which includes an apostrophe, so “don’t” can come out as “Don’T”. Title Case capitalises only the first letter of each word, so it handles apostrophes cleanly.

The programming cases first break the text into words. A space, underscore, hyphen or dot is a break, and so is a lower-case letter or digit followed by a capital. That is why “user_first-name”, “userFirstName” and “user first name” all become the same userFirstName in camelCase. The words are then joined with the separator the case calls for and given the right capitals.

Title case is not one rule

Style guides disagree about which words stay small in a title. This converter is close to AP style: articles (a, an, the), coordinating conjunctions (and, but, or, nor, so, yet) and short prepositions such as of, in, on, to, by and via stay lower case unless they are the first or last word. Chicago style treats prepositions differently, and many house styles capitalise any word of four or five letters or more. Choose one style for a publication and apply it to every heading, because a mix of styles on one page is more noticeable than either choice.

Things to check after converting

  • Acronyms and names. The editorial cases lower-case the text before capitalising, so “BBC” becomes “Bbc” and proper nouns in the middle of a sentence lose their capital. Fix them by hand afterwards.
  • Abbreviations with full stops. Sentence case treats “e.g. this” as a new sentence and capitalises “This”.
  • Runs of capitals in code. “parseHTMLString” splits into “parse” and “HTMLString”, because only a lower-case letter followed by a capital counts as a break. Rename such identifiers by hand.
  • Hyphenated words in titles. Title Case capitalises the start of each space-separated word only, so “well-known” stays “Well-known”.

Making a clean URL slug

A slug is the readable part of a web address. The url-slug option removes accents, lower-cases the text and swaps every run of spaces and punctuation for one hyphen, so nothing in it needs percent-encoding. Keep slugs short and descriptive, leave out words that add nothing, and avoid changing a slug once a page is live unless you redirect the old address to the new one.

  • Readable: /printable-graph-paper/
  • Hard to read: /page?id=8842&cat=17
  • Too long: /the-complete-guide-to-every-kind-of-printable-graph-paper/

Fixing a caps-lock accident

Typing with caps lock on and the shift key held at the start of each sentence gives text like “hELLO tHERE”. iNVERSE cASE swaps every letter back in one go. Run Sentence case afterwards if the capitals still need tidying.

The word counter gives word, character and reading-time figures for the same text, and the lorem ipsum generator makes placeholder copy to test a layout before the real words are ready.

Frequently asked questions

What is the difference between Title Case and Capitalise Each Word?

Capitalise Each Word capitalises every word, including “and”, “of” and “the”. Title Case (AP) keeps short minor words in lower case unless they are the first or last word. “the lord of the rings” becomes The Lord of the Rings in title case, but The Lord Of The Rings if you capitalise every word.

Which programming case should I use?

Follow the convention of the language or project you are working in. Commonly, camelCase is used for JavaScript and Java variables, PascalCase for classes and React components, snake_case for Python names and SQL columns, CONSTANT_CASE for constants and environment variables, and kebab-case for CSS classes and file names.

Does the converter understand text that is already in camelCase?

Yes. A lower-case letter or digit followed by a capital is treated as a word break, as are spaces, underscores, hyphens and dots, so "myVariableName" converts straight to "my_variable_name" or "my-variable-name". A run of capitals such as "XML" in "XMLHttpRequest" is not split, so check names that contain acronyms.

Why did my acronyms and names turn lower case?

Sentence case, Title Case and Capitalise Each Word lower-case the whole text first and then capitalise the letters the rule calls for. That keeps the result consistent, but it also turns "NASA" into "Nasa", and a name such as "London" in the middle of a sentence becomes "london" in sentence case. Read the result through and restore acronyms and proper nouns by hand.

What does the url-slug option do?

It removes accents, lower-cases everything, replaces each run of characters that are not letters or digits with a single hyphen, and trims hyphens from both ends. “Café & Bar, Menu 2026” becomes cafe-bar-menu-2026.

Can I apply two conversions one after the other?

Yes. Press "Use as input" and the result replaces your text, so you can apply a second conversion on top of the first, for example Collapse repeated spaces and then Sentence case.

Is my text sent anywhere?

No. The conversion runs in your browser. Your text is kept in this browser so it is still there if you reload the page, and the Clear button removes it.

More online tools

All 15 online tools