Internative Logo

Text Case Converter: UPPERCASE, lowercase, camelCase, snake_case and More

Text Case Converter: UPPERCASE, lowercase, camelCase, snake_case and More

Text case is how the letters of a phrase are capitalised and joined. Writers need Title Case for headings and Sentence case for body text, while developers need camelCase, snake_case or kebab-case for names in code, files and URLs. The tool below converts your text into any of these in one step. It runs in your browser, so what you paste is not sent anywhere.

Text case converter

See your text in upper case, lower case, Title Case, camelCase, snake_case and more at once. Upper and lower case follow the page's language.

UPPER CASE

HELLO WORLD, THIS IS A TEST

lower case

hello world, this is a test

Title Case

Hello World, This Is A Test

Sentence case

Hello world, this is a test

camelCase

helloWorldThisIsATest

PascalCase

HelloWorldThisIsATest

kebab-case

hello-world-this-is-a-test

snake_case

hello_world_this_is_a_test

CONSTANT_CASE

HELLO_WORLD_THIS_IS_A_TEST

What you enter never leaves your browser. Nothing is sent or stored.

How to use the converter

  1. Type or paste your text into the input field.
  2. Choose what you want. One button shows every case at once, one converts the text to lowercase and one to uppercase.
  3. Copy the result you need.

The "every case" view lists six results side by side so you can pick the one that fits: camelCase, PascalCase, kebab-case, snake_case, Title Case and Sentence case.

What each case looks like

For the text user account settings:

  • camelCase: userAccountSettings. Variables and functions in JavaScript, Java and many other languages.
  • PascalCase: UserAccountSettings. Class and type names, and component names in React.
  • kebab-case: user-account-settings. URLs, CSS class names and file names.
  • snake_case: user_account_settings. Variables and database columns in Python, Ruby and SQL.
  • Title Case: User Account Settings. Headings and titles.
  • Sentence case: User account settings. Normal sentences, and increasingly headings, buttons and interface labels.

Common uses

  • Turning a heading written in capitals back into readable text.
  • Renaming a field when data moves between systems that use different conventions, such as a JSON key in camelCase and a database column in snake_case.
  • Preparing a URL slug or a file name from a title.
  • Cleaning up text pasted from a document, an email or a spreadsheet.

Things to watch for

  • Punctuation stays. The converter changes letters and joins words at spaces. In kebab-case and snake_case, commas, apostrophes and other punctuation remain in the output, so remove them yourself before you use the result as a slug or identifier.
  • Title Case is simple. It capitalises the first letter of every word, including small words like "and" and "of". Style guides often keep those in lowercase, so check headings against your own rule.
  • Acronyms. Lowercasing everything turns API into api and HTML into html. In camelCase you may want parseHtml or parseHTML depending on your convention.
  • Language rules. Some languages capitalise differently. Turkish has a dotted and a dotless i, and general case rules do not handle it the way a Turkish reader expects, so check the result when your text contains those letters.
  • Numbers and symbols. They are left alone, and a camelCase name should not start with a digit.

When renaming is a data problem

Converting a few names by hand is easy. When thousands of fields, files or records have to follow a convention automatically as data moves between systems, the conversion belongs in code. That kind of repetitive text and data handling is what we automate in process automation and build into custom software.

Frequently asked questions

Does my text leave my browser?

No. The conversion happens in the page on your device. The tool makes no network request with your text and does not store it.

What is the difference between camelCase and PascalCase?

camelCase starts with a lowercase letter (userName), PascalCase with an uppercase one (UserName). Both join words without separators.

When should I use kebab-case and when snake_case?

Use kebab-case in URLs, CSS and file names, where hyphens are common. Use snake_case in languages and databases where a hyphen would be read as a minus sign.

Does it change numbers or symbols?

No. Only letters change case, and words are joined at spaces.

Is there a limit on the length of the text?

No fixed limit. Very long texts depend on what your browser can handle.

Related services

Where this topic becomes an engagement.

Keep reading

The articles that follow this one.