Case Converter Guide
Every language and tool has its own naming convention: JavaScript variables are camelCase, Python and database columns use snake_case, environment variables are CONSTANT_CASE, URLs and CSS classes are kebab-case, and HTTP headers are Train-Case. Moving a name from one world to another — an API field into a TypeScript type, a column into a form label — means rewriting it by hand. This converter splits any text or identifier into words, understands acronyms and numbers, and shows it in twelve cases at once, ready to copy.
⚙️ Key Features
- Twelve cases: camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, Train-Case, dot.case, path/case, Title Case, Sentence case, lower case and UPPER CASE.
- Smart word splitting that understands acronyms and numbers: userID2Name, HTTPServerError and base64Encode split the way a developer expects.
- Converts a whole list at once — paste one name per line and every line is converted separately.
- Title Case follows common style-guide rules: short words like 'of' and 'the' stay lower case, acronyms like API stay upper case.
- Detects the case your input is already in and marks it.
- Copy or download the full result; for a single name, every case is listed for one-click copying.
📖 How to Use
- Type or paste text into the input, or click 'Sample'. Paste a list to convert many names at once.
- Pick the target case from the Code or Text row; the output updates instantly.
- Copy or download the result. For a single name, the 'Every case' list below lets you copy any case with one click.
All conversions run locally in your browser. The text you paste — field names, internal identifiers or copy — is never sent to a server or stored.
Frequently Asked Questions (FAQ)
What is the difference between camelCase and PascalCase?
Both join words without separators and capitalise each word, but camelCase starts with a lower-case letter (userAccountId) while PascalCase starts with a capital (UserAccountId). By convention camelCase is used for variables and functions, PascalCase for classes, types and React components.
When should I use snake_case vs kebab-case?
snake_case (words joined by underscores) is standard in Python, Ruby and SQL column names, because a hyphen would be read as a minus sign in code. kebab-case (words joined by hyphens) is used where code isn't involved: URLs, CSS class names, file names and command-line flags.
How are acronyms like ID or HTTP handled?
The converter treats a run of capitals as one word, so HTTPServerError becomes http_server_error and userID becomes user_id. When joining words back into camelCase or PascalCase, acronyms are written as ordinary words (userAccountId, HttpServerError), which is what most style guides recommend.
Why do apostrophes disappear in identifier cases?
Identifiers can't contain apostrophes, so words like don't become dont in snake_case or camelCase. Text cases — Title Case, Sentence case, lower and UPPER — keep your punctuation and spacing exactly as written.