Case Converter

Convert text between different cases

About Case Converter

Different naming conventions are used across programming languages and contexts. camelCase for JavaScript, snake_case for Python, kebab-case for CSS, and PascalCase for class names.

What is Case Converter?

The Case Converter is a free online tool that transforms text between sixteen different letter cases and naming conventions with a single click. It handles UPPERCASE, lowercase, Title Case, Sentence case, Capitalize Each Word, camelCase, PascalCase, snake_case, kebab-case, dot.case, path/case, CONSTANT_CASE, COBOL-CASE, Train-Case, alternating case, and toggle case. These conventions matter because different programming languages and contexts expect different styles: camelCase for JavaScript variables, snake_case for Python and database columns, kebab-case for CSS classes and URL slugs, PascalCase for class names, CONSTANT_CASE for configuration constants, and COBOL-CASE for legacy and screaming-kebab identifiers. Instead of retyping or hand-editing text, you paste it once and convert to any style instantly. Everything runs in your browser, with no signup and no limits.

How to use Case Converter?

Converting the case of your text takes just one click:

  1. 1 Type or paste the text you want to convert into the input area. It can be a single word, a variable name, a sentence, or a whole paragraph.
  2. 2 Choose a case format from the sixteen conversion buttons, such as UPPERCASE, camelCase, snake_case, kebab-case, PascalCase, COBOL-CASE, or Train-Case.
  3. 3 See the converted text appear instantly in the output area, formatted exactly to the convention you selected.
  4. 4 Copy the result with one click and paste it straight into your code, configuration file, document, or URL.

Why use this tool?

Consistent naming is part of clean code, and switching a name between conventions by hand is fiddly and error-prone, especially with multi-word identifiers. This tool does it instantly and correctly, so a variable typed as a plain sentence becomes valid camelCase or snake_case in a moment. It is invaluable for developers moving code between languages, writers fixing capitalization in headings, and anyone preparing URL slugs, file paths, or constants. Offering sixteen formats in one place — from everyday Title Case and Sentence case through to specialist styles such as path/case, COBOL-CASE, Train-Case, and playful alternating case — means you never need to remember the exact rules for each style. Because it runs entirely in your browser, your text is never uploaded, so it stays private and the tool is fast even offline. It is free and requires no account.

Examples

Naming a JavaScript variable

Turn the phrase user first name into userFirstName in camelCase, ready to use as a JavaScript variable.

Creating a URL slug

Convert an article title such as My First Blog Post into my-first-blog-post in kebab-case for a clean, readable URL.

Defining a constant

Transform max retry count into MAX_RETRY_COUNT in CONSTANT_CASE, the standard style for configuration constants.

Building a file path or COBOL identifier

Turn reports yearly summary into reports/yearly/summary in path/case, or into REPORTS-YEARLY-SUMMARY in COBOL-CASE for legacy systems and screaming-kebab identifiers.

Frequently Asked Questions

Is the Case Converter free to use?

Yes. The tool is completely free with no signup, no limits, and no account required. You can convert as much text as you like.

How many case formats does it support?

It supports sixteen formats: UPPERCASE, lowercase, Title Case, Sentence case, Capitalize Each Word, camelCase, PascalCase, snake_case, kebab-case, dot.case, path/case, CONSTANT_CASE, COBOL-CASE, Train-Case, alternating case, and toggle case.

Which case should I use in my code?

It depends on the language and context: camelCase and PascalCase are standard in JavaScript and TypeScript, snake_case suits Python and database columns, kebab-case is ideal for CSS classes and URL slugs, CONSTANT_CASE and COBOL-CASE suit constants and legacy identifiers, and path/case mirrors file and folder structures.

Is my text uploaded anywhere?

No. All conversion happens in your browser, so your text is never sent to or stored on a server, keeping it private.

Can I convert long paragraphs?

Yes. You can paste anything from a single word to a full paragraph, and the chosen case is applied to the entire text instantly.

Related Tools

Explore more free tools you might find useful