Skip to main content

Text Case Converter

Convert any text to UPPERCASE, lowercase, Title Case, camelCase, snake_case, and more.

Text case converter transforms any text into 8 formats with one click. Supported formats: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, and kebab-case. Paste your text, click a format button, and copy the result. All conversion runs in the browser. Free, no signup required.

Select case format
Input
UPPERCASE

Frequently Asked Questions

What is camelCase?
camelCase writes compound words without spaces, with each word after the first starting with a capital letter: firstName, getUserName, totalPriceAfterTax. The name comes from the humps formed by the capital letters. Standard in JavaScript, Java, and Swift for variable and function names.
What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter: myVariable. PascalCase (also called UpperCamelCase) starts every word with a capital, including the first: MyVariable. PascalCase is standard for class names in most languages. camelCase is standard for method and variable names.
What is snake_case used for?
snake_case separates words with underscores and uses all lowercase: user_name, total_price, get_user_by_id. Standard in Python, Ruby, SQL column names, and some REST API designs, snake_case improves readability where camelCase is not conventional.
What is kebab-case?
kebab-case separates words with hyphens and uses all lowercase: user-name, total-price, get-user-by-id. Standard for CSS classes, HTML attributes, URL slugs, and CLI flags. The name comes from words resembling items on a skewer.
What is Title Case?
Title Case capitalises the first letter of every word: The Quick Brown Fox. Used in headlines and book titles, Title Case differs from Sentence case, which only capitalises the first word. Style guides differ on which minor words to capitalise in titles.

What is text case conversion?

Text case conversion changes the capitalisation pattern of text without altering the words themselves. Programming languages, writing styles, and technical systems each have conventions for how compound words and identifiers should be formatted.

A developer pasting user input into a variable name needs camelCase. A content writer reformatting a title needs Title Case. A database engineer naming columns needs snake_case. A URL builder needs kebab-case. Converting between these formats manually is tedious and error-prone, especially for long strings.

The 8 supported formats

UPPERCASE converts all characters to capitals: HELLO WORLD. Useful for headings, labels, and abbreviations.

lowercase converts all characters to small letters: hello world. Common in URL paths, email addresses, and code identifiers.

Title Case capitalises the first letter of every word: Hello World. Standard for article titles, product names, and headings.

Sentence case capitalises only the first word and proper nouns: Hello world. Used in prose, labels, and UI copy.

camelCase removes spaces and capitalises each word after the first: helloWorld. Standard for variables and functions in JavaScript, Java, and C#.

PascalCase capitalises every word including the first: HelloWorld. Standard for class and component names across most languages.

snake_case replaces spaces with underscores in lowercase: hello_world. Standard in Python, Ruby, SQL, and REST APIs.

kebab-case replaces spaces with hyphens in lowercase: hello-world. Standard in CSS classes, HTML attributes, URL slugs, and npm package names.

When to use each case

Choose camelCase for JavaScript variables, TypeScript interfaces, and Java methods. Choose PascalCase for React components, TypeScript types, and C# classes. Choose snake_case for Python variables, PostgreSQL columns, and Ruby methods. Choose kebab-case for CSS class names, HTML data attributes, URL slugs, and CLI flags. Choose Title Case for article titles, product names, and navigation labels. Choose Sentence case for UI button labels and tooltip text.

Tips for using the text case converter

  • Pasting code with camelCase and switching to snake_case helps when porting between JavaScript and Python codebases.
  • Reformatting ALL CAPS headlines: paste the text, convert to Title Case. Then manually fix any proper nouns the converter may have lowercased.
  • For URL slug generation, convert to kebab-case, then remove any punctuation characters before using the result in a URL path.