Case Converter
Convert text to any case format instantly — snake_case, camelCase, kebab-case, Title Case, and 9 more. Type or paste text and all 12 formats update in real time. Free, nothing uploaded.
All conversion runs in your browser. Nothing is sent to any server.
About Case Converter
Case Converter transforms any text into all 12 common case formats simultaneously. Paste a variable name, a heading, a phrase, or an entire paragraph and instantly see every format side-by-side. Nothing leaves your browser — all conversion logic runs in JavaScript with no server calls. There is no button to press: every keystroke updates all 12 outputs in real time.
The tool is split into two groups. Typography formats (UPPER CASE, lower case, Title Case, Sentence case, Alternating case, Inverse case) are the formats writing tools, email clients, and word processors use. Programming formats (camelCase, PascalCase, snake_case, kebab-case, dot.case, CONSTANT_CASE) are the naming conventions that appear in code, config files, and APIs. Having both groups on one page is useful when you are moving content between a prose context and a code context — for example, turning a product name from Title Case into a slug (kebab-case) and a constant (CONSTANT_CASE) in one paste.
How to convert text case
- Type or paste your text into the textarea. The char and word count updates as you type.
- All 12 formats appear instantly — no button required. Outputs update on every keystroke.
- Click Copy on the right of any output row. The button turns green and confirms “Copied!” for 1.5 seconds.
- Paste the output into your code editor, document, or form field.
Frequently Asked Questions
What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter and capitalizes each subsequent word: “helloWorldExample”. PascalCase (also called UpperCamelCase) starts with an uppercase letter: “HelloWorldExample”. camelCase is standard for variable and function names in JavaScript, Java, and Swift. PascalCase is standard for class names in most languages and for component names in React.
When should I use snake_case instead of kebab-case?
Use snake_case for Python variable and function names, Ruby identifiers, database column names, and environment variable names. Use kebab-case for CSS class names, HTML data attributes, URL slugs, and npm package names. The key difference: hyphens in kebab-case cannot be used in most programming language identifiers (the hyphen parses as subtraction), while underscores are universally valid in identifiers.
What is CONSTANT_CASE used for?
CONSTANT_CASE (all-caps snake_case) is the convention for compile-time constants, environment variables, and configuration keys across most languages: Python, Java, C, JavaScript (const MAX_RETRY_COUNT), and shell scripts. It signals to readers that the value does not change at runtime. Some style guides also use it for enum values.
How does the converter handle camelCase input?
The converter treats the input as plain text and splits on whitespace and punctuation to find word boundaries. camelCase or PascalCase input (“helloWorld”) is treated as a single word unless it contains spaces. For best results with multi-word input, type or paste with spaces between words — for example “hello world” — and then copy the format you need.
Is there a character limit?
No hard limit — the tool processes whatever the browser textarea accepts. Practical performance stays smooth up to tens of thousands of characters. For very long input the char and word count updates on every keystroke, so you can monitor length as you type or paste.