← All tools
// TEXT

Case Converter online

Convert text between camelCase, snake_case, PascalCase, and more.

Text Case Converter logo
by
CHUNKY
MUNSTER
CASE CONVERTER

Case Types

How to Use case-converter

  1. Type or paste your text into the input area.
  2. Choose the target case from the buttons: UPPER, lower, Title, camelCase, snake_case, PascalCase, kebab-case, CONSTANT_CASE.
  3. The output updates instantly — no submit button needed.
  4. Copy the result directly from the output area.

Developers and writers constantly switch between naming conventions: JavaScript uses camelCase for variables, Python uses snake_case, CSS uses kebab-case, and SQL uses UPPER_CASE. This converter handles all common cases in one click, including Title Case with smart handling of articles and prepositions.

Case Convention Reference

camelCase: first word lowercase, subsequent words capitalised — used in JavaScript, Java, and JSON keys. PascalCase (UpperCamelCase): all words capitalised — used for class names in most OOP languages. snake_case: words separated by underscores, all lowercase — Python, Ruby, database column names. kebab-case: hyphen-separated — CSS class names, URL slugs, HTML data attributes. SCREAMING_SNAKE_CASE: uppercase snake_case — constants in Python, C, and Rust.

Frequently Asked Questions

What is the difference between camelCase and PascalCase?

camelCase starts with a lowercase letter (e.g. myVariable). PascalCase starts with an uppercase letter (e.g. MyClass). Both join words without spaces or separators.

Which case should I use for CSS class names?

kebab-case is the universal convention for CSS class and ID names: .my-component, #nav-bar. CSS is case-insensitive for class selectors, but kebab-case is the community standard.

How does Title Case handle "a", "the", "of", etc.?

Standard English Title Case capitalises all words except articles (a, an, the), coordinating conjunctions (and, but, or), and short prepositions (in, on, of, at) — unless they are the first or last word of the title.

What is CONSTANT_CASE (SCREAMING_SNAKE_CASE)?

All uppercase with underscores as separators — MAX_RETRY_COUNT, DEFAULT_TIMEOUT_MS. Used for constants in Python, C, Rust, Java, and most languages to signal that a value should not be mutated.

See also the Batch Slug Generator, Text Whitespace tools, and Word Count.