Case Converter
Convert any text between six naming conventions in real time — camelCase, PascalCase, snake_case, kebab-case, SCREAMING_SNAKE_CASE, and Title Case. Type once, copy whichever format your language or tool requires. 100% client-side.
Which case should you use? A practical decision table
| camelCase | JavaScript variables, function parameters, JSON keys (myVariableName). The default for JS/TS code outside of classes and components. |
| PascalCase | Class names, React/Vue/Svelte component names, TypeScript types & interfaces (UserProfileCard). JSX requires PascalCase so components are distinguishable from DOM elements. |
| snake_case | Python variables & functions, Ruby, most SQL column & table names, database fields (user_profile_id). The PEP 8 standard for Python. |
| kebab-case | CSS class names, HTML attributes (data-user-id), URL slugs, file names (my-component.js). The only case CSS allows with multiple words. |
| SCREAMING_SNAKE_CASE | Environment variables, build-time constants (MAX_RETRY_COUNT), Docker env config, .env keys. Conventionally reserved for values known before runtime. |
| Title Case | Human-readable labels, headings, UI text (User Profile Settings). Not for code — for copy that describes what the code does. |
user_profile_id into a JavaScript file, or a JSON key into a CSS class. This tool's word-boundary engine understands camelCase, separators, and acronyms simultaneously, so it converts correctly no matter which format your input happens to be in. No manual word-splitting, no re-typing.
Acronyms, numbers, and edge cases — the honest details
The difference between a good and a great case converter is how it handles the messy real world. This tool handles: acronyms (HTTPServer → HTTP + Server, userID → user + ID), number-word boundaries (version2 → version2, version_2 → version + 2), mixed input (some_Mixed-Case Text → consistent output in every format), and leading/trailing separators (—, _, spaces are all treated as word boundaries and stripped from output). If the acronym option is off, all-caps runs are split per-letter, which is almost never what you want — that's why it defaults to on.
Frequently asked questions
For the full breakdown of camelCase vs PascalCase vs snake_case conventions, how this tool handles acronyms, and privacy guarantees, see the structured FAQ at the top of this page. The short version: camelCase for JS variables, PascalCase for classes & components, snake_case for Python & databases, kebab-case for CSS & URLs, SCREAMING_SNAKE for constants, Title Case for UI copy — and everything converts here in real time, privately, in your browser.
Related tools: Character Counter · Word Counter · Lorem Ipsum Generator · JSON to Code Generator · More Developer Tools