DevKits

Text Case Converter

Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, and more.

Last updated:

camelCasetheQuickBrownFoxJumpsOverTheLazyDog
PascalCaseTheQuickBrownFoxJumpsOverTheLazyDog
snake_casethe_quick_brown_fox_jumps_over_the_lazy_dog
kebab-casethe-quick-brown-fox-jumps-over-the-lazy-dog
CONSTANT_CASETHE_QUICK_BROWN_FOX_JUMPS_OVER_THE_LAZY_DOG
Title CaseThe Quick Brown Fox Jumps Over The Lazy Dog
Sentence caseThe quick brown fox jumps over the lazy dog
lowercasethe quick brown fox jumps over the lazy dog
UPPERCASETHE QUICK BROWN FOX JUMPS OVER THE LAZY DOG

Paste text above and pick a target case — camelCase, snake_case, kebab-case, PascalCase, CONSTANT_CASE, Title Case, and more. Conversion is instant and local.

What is Case Converter?

A case converter transforms text between the naming conventions developers use every day: camelCase for variables, PascalCase for classes, snake_case for Python and database columns, kebab-case for URLs and CSS, and CONSTANT_CASE for environment variables. It saves you from manually retyping identifiers when moving code or data between languages and styles that follow different conventions.

How to convert text case

  1. 1Paste the text or identifier you want to convert.
  2. 2The tool detects word boundaries from spaces, punctuation, and case transitions.
  3. 3Pick your target case from the options.
  4. 4Copy the converted result.

Use Cases

Port identifiers across languages

Convert a snake_case Python field to camelCase for JavaScript, or PascalCase for a C# class.

Generate slugs and CSS names

Turn a title into a kebab-case URL slug or CSS class in one step.

Normalize environment variables

Convert a config key to CONSTANT_CASE for use as an environment variable name.

Code Examples

Same phrase, every case

hello world  -> helloWorld   (camelCase)
hello world  -> HelloWorld   (PascalCase)
hello world  -> hello_world  (snake_case)
hello world  -> hello-world  (kebab-case)
hello world  -> HELLO_WORLD  (CONSTANT_CASE)

Key Concepts

Word boundary detection
The converter splits input on spaces, punctuation, and case transitions (fooBar → foo + Bar), then rejoins with the target style.
camelCase vs PascalCase
camelCase lowercases the first word (userName); PascalCase (a.k.a. UpperCamelCase) capitalizes every word (UserName).
kebab vs snake
kebab-case joins with hyphens (URL/CSS friendly); snake_case joins with underscores (Python, SQL). Hyphens are invalid in most identifiers.

Tips & Best Practices

  • Acronyms are ambiguous — 'HTTPServer' may split as HTTP+Server or H+T+T+P+Server depending on rules. Verify edge cases.
  • kebab-case can't be used as a variable name in most languages (hyphen = minus); it's for URLs, CSS, and file names.
  • CONSTANT_CASE is the convention for environment variables and compile-time constants.
  • Preserve intended acronyms manually if the auto-split gets them wrong.

Frequently Asked Questions

Which cases are supported?

camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case, Sentence case, lowercase, and UPPERCASE.

How are non-ASCII characters handled?

Unicode letters are preserved. Word boundaries are detected by whitespace, punctuation, and case transitions, so most mixed-language inputs work well.

Related Tools