What This Tool Does
This case converter transforms any text between common case styles: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and more. Useful for code refactoring, content editing, headlines, file naming, and database fields.
Inputs Explained
- Source Text: Paste any text — single word, sentence, paragraph, or list.
- Target Case: Click the case style you want. The result appears below the input.
How It Works
The converter applies pure JavaScript string transformations. For word-boundary cases (camel, snake, kebab, Pascal), the input is split on whitespace, hyphens, underscores, and case changes; words are then re-joined using the chosen separator and capitalization rule.
Formula / Logic Used
Case Converter
Convert text between any case style with one click. No data leaves your browser.
Step-by-Step Example
Input: hello world from bulk calculator
UPPERCASE: HELLO WORLD FROM BULK CALCULATOR
Title Case: Hello World From Bulk Calculator
camelCase: helloWorldFromBulkCalculator
snake_case: hello_world_from_bulk_calculator
kebab-case: hello-world-from-bulk-calculator
Use Cases
- Code refactoring: Convert variable or function names between camelCase, snake_case, and PascalCase to match a project's style guide.
- Content editing: Fix headings that were typed in all caps or all lowercase by mistake.
- URL slugs: Convert article titles into clean kebab-case URLs for SEO-friendly links.
- Database design: Standardize column names to snake_case across MySQL or PostgreSQL tables.
- Constants in code: Quickly produce CONSTANT_CASE names for config keys and environment variables.
Assumptions and Limitations
- Sentence case detection uses simple punctuation rules — abbreviations like Dr. or U.S.A. may cause an extra capital after the period.
- Conversion preserves non-letter characters as-is. Numbers and symbols are not split into words.
- Title case capitalizes every word; AP/Chicago style rules (skipping short articles) are not applied.
- Languages with case-less scripts (Chinese, Japanese, Arabic, Hindi) will pass through unchanged.
Frequently Asked Questions
What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter (e.g., myVariableName) and is common in JavaScript and Java for variables. PascalCase capitalizes every word including the first (e.g., MyClassName) and is common for class names.
When should I use snake_case vs kebab-case?
snake_case (with underscores) is used for variable and database column names in Python, Ruby, and SQL. kebab-case (with hyphens) is used for URLs, CSS class names, and HTML attributes since underscores are not allowed in URLs.
Does the tool handle multi-line input?
Yes. Paragraphs and line breaks are preserved. Sentence case detects sentence boundaries based on . ! and ? punctuation.
Can I convert from camelCase back to a normal sentence?
Yes. Paste your camelCase or snake_case string and click Title Case or Sentence case — the tool will detect word boundaries and re-format with spaces.
Is title case the same as headline case?
They are similar but not identical. Title case capitalizes every word. Headline case (AP, Chicago Manual of Style) skips small words like a, an, the, and, or, but unless they start the title.
Will my text be saved or shared?
No. Everything runs in your browser. The tool has no backend, no cookies, and no analytics tied to your input.
Why does CONSTANT_CASE differ from snake_case?
They use the same separator (underscore) but CONSTANT_CASE is fully uppercase. It is the standard for environment variables and immutable constants in most programming languages.
Can I batch-convert thousands of lines?
Yes. Paste any volume of text — the tool handles megabytes of input quickly. Performance depends on your device's CPU.
Sources and References
- MDN — String.prototype methods — Reference for the JavaScript string transformations used.
- Wikipedia — Letter case — Background on case conventions across languages.
- Wikipedia — Naming conventions in programming — camelCase, snake_case, kebab-case in code.
- Chicago Manual of Style — Capitalization — Editorial guidance on title and headline capitalization.