Skip to content
ToolDesk

Case Converter

Convert between camelCase, snake_case, kebab-case, UPPER, lower and more at once.

Text

About this tool

The case converter reshapes your input into formats like camelCase, snake_case, and kebab-case all at once. It runs in your browser and never sends your input anywhere. Naming conventions are set by language and context, so knowing which format goes where saves you from second-guessing.

The main cases and where they are used

  • camelCase β€” variables and functions in JavaScript and Java.
  • PascalCase β€” class names, type names, React components.
  • snake_case β€” Python variables, database column names.
  • CONSTANT_CASE (uppercase snake) β€” constants and environment variables.
  • kebab-case β€” CSS classes, URL slugs, file names.

How word boundaries are detected

The tool carves out words using uppercase positions, underscores, hyphens, and spaces. So userName, user_name, and user-name are all first split into "user" and "name" and then reassembled into each format. That is why you can paste any format and still convert.

Consecutive uppercase (acronyms) is hard

With consecutive uppercase like APIKey or parseHTML, where to split is not uniquely determined. Whether HTTPServer should become http_server or not depends on the format and the house style. Always check that names containing acronyms come out as intended.

Non-English text and symbols have no case

Only the alphabet has the concept of upper and lower case, so non-English portions are unaffected by case conversion. Word-boundary detection also targets letters and digits, so strings mixing symbols or non-English text can produce results that differ from your intent.

How to use

  1. Type text to convert it into every case at once.
  2. Copy the format you need: camelCase, snake_case, kebab-case and more.

FAQ

Is the string I enter sent anywhere?

No. Case conversion runs entirely in your browser (JavaScript), and the string you enter is never sent to a server.

What formats can it convert to?

Identifier formats such as camelCase, PascalCase, snake_case, CONSTANT_CASE (uppercase snake), kebab-case, and dot.case, plus natural-text formats such as uppercase, lowercase, Title Case, and Sentence case.

What format should I enter?

Any format is fine. It detects words using the uppercase positions in camelCase, the underscores in snake_case, and spaces or hyphens, so userName, user_name, and user-name can all be converted to every format together.

What is the difference between Title Case and Sentence case?

Title Case capitalizes the start of each word (e.g. The Quick Brown Fox). Sentence case capitalizes only the start of the sentence (e.g. The quick brown fox). Use them for headings versus body text.

What happens to non-English text or symbols?

Uppercase and lowercase apply to the alphabet, so case conversion does not affect non-English scripts. Because word-boundary detection targets letters and digits, strings mixing symbols or non-English text may give results that differ from your intent.

How are consecutive uppercase letters (acronyms) handled?

For consecutive uppercase like APIKey, it tries to split by detecting the boundary with the following word. Since the best treatment of acronyms varies by format and context, check the result after converting.