← Back to tools

Case Converter

Convert text to every common naming convention. Live.

Different languages and contexts use different naming conventions. camelCase (JavaScript variables, Java methods) starts lowercase and capitalizes each subsequent word. PascalCase (class names in most languages, React components) capitalizes every word. snake_case (Python, Ruby, databases) uses underscores. kebab-case (CSS classes, URLs, HTML attributes) uses hyphens. CONSTANT_CASE (environment variables, constants) is uppercase snake_case.

Converting between them manually is tedious and error-prone, especially with mixed input. This tool parses any input — spaces, mixed case, existing delimiters — and rebuilds it in every common format. Useful for refactoring, generating API field names, or translating between languages with different conventions.

Other formats included: Title Case for headings, Sentence case for prose, dot.case for namespaces, and Train-Case (capitalized kebab-case) for HTTP headers. Every output is copy-ready.

This tool in other languages:

Français:
Convertisseur de casse

Español:
Convertidor de mayúsculas

Deutsch:
Schreibweise-Konverter

Português:
Conversor de caixa

日本語:
ケース変換ツール

中文:
大小写转换器

한국어:
대소문자 변환기

العربية:
محول حالة الأحرف

Frequently asked questions

How do I convert text to camelCase, snake_case, or kebab-case?

Paste your text in the input. Every case variant (camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, kebab-case, Title Case, Sentence case) appears in its own row. Click Copy next to the one you want.

Which case convention should I use in my code?

Follow your language's convention: JavaScript/Java/C#: camelCase for variables, PascalCase for classes. Python/Ruby: snake_case. URLs/CSS classes: kebab-case. Constants: SCREAMING_SNAKE_CASE across most languages. Consistency within a codebase matters more than which style is "right".

What is the difference between camelCase and PascalCase?

camelCase starts with a lowercase letter: userName, calculateTotal. PascalCase (also called UpperCamelCase) capitalizes every word including the first: UserName, CalculateTotal. In most languages, camelCase is for variables and functions, PascalCase is for classes and types.

How does the converter handle text with numbers and acronyms?

Numbers stay adjacent to their word: order 2 quantity becomes order2Quantity in camelCase. For acronyms, the tool treats them as single words: HTTP request becomes httpRequest. Strict style guides may want HTTPRequest instead — adjust manually if needed.

Is this tool the same as the Text Transformer?

Text Transformer includes case conversion plus utilities like Sort Lines, Dedupe, Reverse, and Trim. This Case Converter focuses on showing every case variant at once for quick copying. Use whichever matches your workflow.