Capital Case Converter

Convert text between capital case, title case, camelCase, snake_case, kebab-case, UPPER, lower, and PascalCase. Essential developer text transformation tool.

Capital Case Converter

Words Detected
3
Detected 3 words from input: "hello, world, example"
Character Count
19
17 letters, 0 uppercase, 17 lowercase, 0 digits
Title Case
Hello World Example
Capitalize major words
camelCase
helloWorldExample
First word lowercase, rest capitalized
PascalCase
HelloWorldExample
All words capitalized, no separator
snake_case
hello_world_example
Lowercase with underscores
kebab-case
hello-world-example
Lowercase with hyphens
SCREAMING_SNAKE
HELLO_WORLD_EXAMPLE
Uppercase with underscores
FormatResultDescription
Title CaseHello World ExampleCapitalize major words
Sentence caseHello world exampleCapitalize first word only
UPPER CASEHELLO WORLD EXAMPLEAll characters uppercase
lower casehello world exampleAll characters lowercase
camelCasehelloWorldExampleFirst word lowercase, rest capitalized
PascalCaseHelloWorldExampleAll words capitalized, no separator
snake_casehello_world_exampleLowercase with underscores
kebab-casehello-world-exampleLowercase with hyphens
SCREAMING_SNAKEHELLO_WORLD_EXAMPLEUppercase with underscores
SCREAMING-KEBABHELLO-WORLD-EXAMPLEUppercase with hyphens
dot.casehello.world.exampleLowercase with dots
path/casehello/world/exampleLowercase with slashes
tOGGLE cASEHELLO WORLD EXAMPLEInvert each character's case
Character Distribution
■ Upper (0) ■ Lower (17) ■ Digits (0) ■ Other (2)
Naming Convention Reference
ConventionUsed InExample
camelCaseJavaScript, Java variablesmyVariableName
PascalCaseClasses, React componentsMyClassName
snake_casePython, Ruby, databasesmy_variable_name
kebab-caseCSS, HTML, URLsmy-class-name
SCREAMING_SNAKEConstants in most languagesMAX_RETRY_COUNT
Title CaseHeadings, titlesMy Variable Name
dot.caseJava packages, configscom.example.app
Planning notes, formulas, and examples

About the Capital Case Converter

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 converter handles it without manual cleanup. 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.

When This Page Helps

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.

How to Use the Inputs

  1. Enter or paste your text in the input field
  2. View all case conversions displayed simultaneously below
  3. Click on any output to copy it to your clipboard
  4. Use the preset examples to see how different inputs are handled
  5. Select a specific input format if auto-detection doesn't match your text
  6. Review the character and word count statistics
  7. Use the comparison table to understand each casing convention
Formula used
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.

Example Calculation

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.

Tips & Best Practices

  • Use camelCase for JavaScript/TypeScript variables and functions
  • Use PascalCase for class names and React component names
  • Use snake_case for Python variables, functions, and database columns
  • Use SCREAMING_SNAKE_CASE for constants and environment variables
  • Use kebab-case for CSS classes, URLs, and file names
  • When converting from camelCase, the tool automatically detects word boundaries

Case Convention Standards by Language

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 Rules and Style Guides

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.

Automated Case Conversion in Development

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.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • 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.