Skip to content
AZ Tools

Case Converter

Paste any text and see it in nine common cases at once — UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE. The converter splits your input into words on spaces, underscores, hyphens, and lowercase-to-uppercase transitions, so it round-trips cleanly between naming styles: `user_id`, `userId`, and `user-id` all produce the same nine variants. Everything runs as plain JavaScript in your browser; nothing is sent to a server. Each style has a home: camelCase is the convention for variables and functions in JavaScript and Java, PascalCase for classes, types, and React components, snake_case for Python, Ruby, and SQL identifiers, kebab-case for URL slugs, CSS classes, and CLI flags, and CONSTANT_CASE for environment variables and constants. Typical jobs: renaming an identifier while porting code between languages, slugifying a headline for a URL, or normalizing inconsistent column names in a dataset.

How to use

  1. Type or paste your text into the input — a sentence, an identifier, or a whole list all work.
  2. All nine case variations update live as you type.
  3. Pick the variant you need; the programmer cases (camelCase, snake_case, …) strip punctuation and rejoin the detected words.
  4. Copy any result with its Copy button.

Frequently asked questions

How are word boundaries detected?
Spaces, underscores, hyphens, and camelCase transitions (a lowercase letter or digit followed by an uppercase letter) all count as word boundaries. Other punctuation is dropped, so `hello, world!` becomes `hello_world` in snake_case. Title Case and the programmer cases keep only ASCII letters and digits, while UPPER, lower, and Sentence case transform the full Unicode text.
What's the difference between Title Case and Sentence case?
Title Case capitalizes the first letter of every word; Sentence case lowercases everything, then capitalizes only the first word of each sentence (after `.`, `!`, or `?`). Note this is the simple every-word Title Case — editorial styles like AP or Chicago also keep short words such as 'of' and 'the' lowercase.
When should I use camelCase, snake_case, or kebab-case?
Follow the ecosystem: camelCase for JavaScript/Java variables and JSON keys, PascalCase for class and component names, snake_case for Python, Ruby, and SQL, kebab-case for URL slugs, CSS classes, and CLI flags, and CONSTANT_CASE for environment variables. Whichever you pick, consistency within one codebase matters more than the choice itself.
How are acronyms and all-caps words handled?
Words are only split on lowercase-to-uppercase transitions, so a run of capitals like `HTMLParser` stays one token (`htmlparser` in snake_case), while `parseHTML` splits into `parse_html`. If you need an acronym separated out, lowercase it or insert a space or hyphen before converting.
Is my text uploaded or stored anywhere?
It never leaves your device — conversion happens entirely in your browser. The input is saved to your browser's local storage so it survives a reload; clear the field and it's gone. Nothing is transmitted, logged, or shared.

Guides on this topic

Related tools