Convert text between capital case, title case, camelCase, snake_case, kebab-case, UPPER, lower, and PascalCase. Essential developer text transformation tool.
The Capital Case Converter transforms text between all common casing formats used in writing and programming. Whether you need to convert variable names between camelCase and snake_case, format headlines in Title Case, or normalize a filename or identifier, this tool handles it instantly. It is useful when a text snippet has to move between code, content, and naming conventions without manual cleanup. That makes it easier to compare style-guide variants before you paste the final version.
Text casing conventions serve different purposes. Title Case and Sentence case are used in writing for headings and regular text. In programming, camelCase is standard in JavaScript, snake_case in Python, PascalCase for classes, kebab-case in CSS and URLs, and SCREAMING_SNAKE_CASE for constants. Converting between those formats by hand is tedious and easy to get wrong when you are moving text between tools or languages.
This converter supports over 10 casing formats, handles multi-word input intelligently, and shows all conversions simultaneously so you can copy the exact format you need. It also handles acronyms, numbers, and special characters that often trip up simpler converters.
This converter shows all casing formats at once, saving time when you need to transform variable names, headings, filenames, or identifiers between programming languages and writing styles.
It is useful because casing rules are easy to describe but annoying to apply repeatedly by hand. Seeing camelCase, snake_case, PascalCase, kebab-case, and title formats together reduces copy-paste errors when you are renaming code, cleaning up documentation, or matching a style guide.
Case conversions split input into words, then rejoin with format rules. Word boundaries are detected at: spaces, underscores, hyphens, and camelCase transitions (lowercase→uppercase). Title Case capitalizes major words. Sentence case capitalizes only the first word. camelCase joins with first word lowercase. PascalCase capitalizes all words.
Result: Hello World Example (title), hello_world_example (snake), helloWorldExample (camel), etc.
The input "hello world example" is split into three words and reformatted according to each casing convention's rules.
Different programming languages and frameworks have established casing conventions that developers are expected to follow. JavaScript and TypeScript use camelCase for variables and functions, PascalCase for classes and components, and UPPER_SNAKE_CASE for constants. Python follows PEP 8 with snake_case for functions and variables, PascalCase for classes, and UPPER_SNAKE_CASE for constants.
In web development, CSS uses kebab-case for class names and properties. HTML attributes are lowercase. URLs typically use kebab-case for readability. Understanding and consistently applying these conventions improves code readability and maintainability across teams.
Title Case seems simple but has nuanced rules that vary by style guide. The AP Stylebook capitalizes words of four or more letters. The Chicago Manual of Style lowercases articles, prepositions, and coordinating conjunctions regardless of length. APA Style capitalizes words of four or more letters and all "major" words. This converter implements the most common consensus rules.
Modern IDEs and code editors often include case conversion features, but a dedicated converter is invaluable when working across languages, preparing documentation, or formatting data. Many developers use case conversion as part of code generation, API design, and database schema creation workflows.
Title Case capitalizes the first letter of major words and lowercases minor words (a, an, the, in, of, etc.). It is used for headings by AP, APA, and Chicago style guides, though the exact rules differ slightly between them and can change how a headline reads.
In camelCase, the first word is lowercase and subsequent words are capitalized (myVariableName). In PascalCase, all words including the first are capitalized (MyClassName). PascalCase is also called UpperCamelCase.
snake_case is standard in Python, Ruby, and database column names. kebab-case is used in URLs, CSS class names, and HTML attributes. The choice usually follows the language or platform convention.
Acronyms like URL, API, or HTML are treated as single units. In camelCase they stay uppercase (parseHTMLFile), in snake_case they become lowercase (parse_html_file).
SCREAMING_SNAKE_CASE (also called CONSTANT_CASE) uses all uppercase letters with underscores. It's the convention for constants in Java, JavaScript, Python, and many other languages.
Yes, numbers are kept with their adjacent word or treated as separate segments depending on context. For example, "section2title" becomes "section_2_title" in snake_case.