| Format | Example | Common Use |
|---|---|---|
| camelCase | myVariableName | JavaScript / Java variables, methods |
| PascalCase | MyVariableName | Class names, React components, TypeScript types |
| snake_case | my_variable_name | Python / Ruby variables, SQL columns |
| CONSTANT_CASE | MY_VARIABLE_NAME | Environment variables, constants |
| kebab-case | my-variable-name | URL slugs, CSS class names, HTML attributes |
| dot.case | my.variable.name | Config keys (e.g. i18n.message.error) |
| lower case | my variable name | Plain prose |
| UPPER CASE | MY VARIABLE NAME | Emphasized titles, acronyms |
| Title Case | My Variable Name | Article / book titles |
| Sentence case | My variable name | Sentence-leading capitalization |
| path/case | my/variable/name | File paths, API routes |
Text Case Converter is a free online tool that converts text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and more. Instant conversion with real-time preview. No data leaves your browser.
What is a Text Case Converter?
A text case converter transforms strings between naming conventions used in programming and writing. It detects the input format automatically and shows conversions to camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, dot.case, lower case, UPPER CASE, Title Case, Sentence case, and path/case — all updated in real time as you type.
Common Use Cases
Language Migration
Rename variables when migrating code between languages — convert Python snake_case to JavaScript camelCase with one paste.
Naming Convention Enforcement
Generate consistent URL slugs, CSS class names, or environment variable names from plain English input.
How to Convert Text Case
- 1
Paste your text
Type or paste any string into the input field. The tool auto-detects the current case format.
- 2
Review conversions
All 11 case formats are displayed instantly in a table. The detected format is highlighted with a badge.
- 3
Copy the result
Click the copy button next to any converted string to copy it to your clipboard.