pegbenchAll tools
Text

Case Converter

Convert text to uppercase, lowercase, title case, sentence case, camelCase, snake_case, kebab-case and more with one click.

About the Case Converter

Fix text typed with Caps Lock on, format headlines in title case, or turn phrases into variable names. Paste your text and click a style; copy the result with one click.

How to use it

  1. Paste your text.
  2. Click the case style you want.
  3. Copy the converted text.

Writing styles

Sentence case capitalises only the first letter of each sentence and is the most readable choice for body text and most headings. Title Case capitalises major words and keeps short words like ‘and’, ‘of’ and ‘the’ lowercase, as in headlines and book titles. UPPERCASE is useful for short labels; long passages in capitals are hard to read.

Programming styles

camelCase (firstName) is common for JavaScript and Java variables, PascalCase (FirstName) for class and component names, snake_case (first_name) in Python and databases, kebab-case (first-name) in URLs and CSS, and CONSTANT_CASE (FIRST_NAME) for constants and environment variables. The converter splits words on spaces, punctuation and existing capital letters, so it can convert between any of these.

Quick fixes

Typed a paragraph with Caps Lock on? Click lowercase, then Sentence case. ‘Remove extra spaces’ tidies text pasted from PDFs and emails by collapsing repeated spaces and trimming line ends.

Frequently asked questions

What is title case?

Title Case capitalises the first letter of each major word, as in headlines and book titles. Short words such as ‘and’, ‘of’ and ‘the’ stay lowercase unless they start the title.

What is sentence case?

Only the first letter of each sentence is capitalised, like normal writing.

What are camelCase and snake_case?

They are naming styles used in programming: camelCase joins words and capitalises each after the first, snake_case joins them with underscores.

Related tools