Case Converter
Convert text between camelCase, PascalCase, snake_case, kebab-case and UPPER_SNAKE_CASE at once. Ideal for coding and API naming.
About This Tool
Naming conventions are an essential part of consistent, readable code and systems. Different languages and contexts favour different cases: camelCase in JavaScript, PascalCase for classes, snake_case in Python and databases, kebab-case in CSS and URLs, UPPER_SNAKE_CASE for constants, and Title Case for headings. QuickKit's Case Converter transforms any text between all six formats instantly — smart word splitting even handles mixed-case inputs like camelCase and PascalCase.
Features
- ✓Six Formats — camelCase, PascalCase, snake_case, kebab-case, UPPER_SNAKE_CASE, and Title Case — all from a single input.
- ✓Smart Word Splitting — Correctly splits camelCase, PascalCase, and acronym sequences (e.g. "XMLParser" → "xml parser") before converting.
- ✓Copy Each Format — Every output format has its own copy button so you can grab exactly what you need.
- ✓Instant Preview — All six outputs update in real time as you type — no need to press any button.
- ✓Handles Separators — Accepts input with spaces, underscores, or hyphens as word separators alongside camel-style inputs.
FAQ
- What is camelCase?
- camelCase writes multi-word identifiers with no separator, capitalizing the first letter of each word except the first. It is the dominant convention for variable and function names in JavaScript, Java, and many other languages. Example: myVariableName.
- When should I use snake_case vs kebab-case?
- snake_case (words joined by underscores) is conventional in Python, Ruby, SQL column names, and shell scripts. kebab-case (words joined by hyphens) is preferred in CSS class names, HTML attributes, URL slugs, and CLI flags. Choose based on the context and surrounding conventions in your codebase.
- How does the word splitter handle "XMLParser"?
- The converter uses a two-pass regex approach. First it splits on transitions from lowercase to uppercase (e.g. "myValue" → "my Value"). Then it handles consecutive capitals followed by a capital-plus-lowercase sequence (e.g. "XMLParser" → "XML Parser"). This correctly handles common patterns like "XMLParser", "getHTTPResponse", and "userID".
- What is UPPER_SNAKE_CASE used for?
- UPPER_SNAKE_CASE (also called SCREAMING_SNAKE_CASE) is the conventional format for constants in most languages, including JavaScript (const MAX_RETRIES = 3), C/C++ preprocessor macros, environment variable names (DATABASE_URL), and Python constants.