Text Case Converter
Convert text between camelCase, snake_case, PascalCase, kebab-case, SCREAMING_SNAKE_CASE, Title Case, and more. Free online tool.
How to Use
- Type or paste your text into the input area.
- Click a target case button (camelCase, snake_case, kebab-case, etc.).
- The converted text appears instantly in the output panel.
- Click Copy to copy the result to your clipboard.
Naming Conventions in Programming
Different programming languages and contexts use different naming conventions. Using the correct convention improves code readability and consistency. camelCase is dominant in JavaScript, TypeScript, and Java for variables and functions. PascalCase is used for class names across most languages and for React components. snake_case is the standard in Python, Ruby, Rust, and SQL. kebab-case is used in CSS, HTML attributes, and URL paths.
SCREAMING_SNAKE_CASE is universally used for constants. dot.case appears in property keys (Java packages, object paths). path/case is used in file system paths and module imports. Understanding these conventions helps when working across multiple languages or converting between codebases.
When to Convert Text Case
- Migrating code between languages with different conventions (Python snake_case to JavaScript camelCase)
- Generating CSS classes from component names (PascalCase to kebab-case)
- Creating database columns from application variables (camelCase to snake_case)
- Building URL slugs from titles (Title Case to kebab-case)
- Defining constants from descriptive names (lowercase to SCREAMING_SNAKE_CASE)
- Formatting headings from variable names (camelCase to Title Case)
How the Converter Works
The converter first splits your input into individual words by detecting boundaries: transitions from lowercase to uppercase (camelCase boundaries), underscores, hyphens, dots, slashes, and spaces. Once split into words, it reassembles them using the rules of the target convention — joining with the appropriate separator and applying the correct capitalization pattern. This means it can convert between any combination of cases, not just specific pairs.
Related Tools
Count words and characters with the Word & Character Counter. Generate URL-safe slugs with the Slug Generator. Escape strings for different contexts with the String Escape Tool. Format code with the JSON Formatter. Compare text changes with the Diff Checker.
Frequently Asked Questions
- What is camelCase?
- camelCase is a naming convention where the first word is lowercase and subsequent words start with an uppercase letter, with no separators. Example: "myVariableName". It is the standard in JavaScript, Java, and TypeScript for variable and function names.
- What is the difference between snake_case and kebab-case?
- snake_case uses underscores between words (my_variable_name) and is common in Python, Ruby, and SQL. kebab-case uses hyphens (my-variable-name) and is used in CSS class names, URL slugs, and HTML attributes.
- What is PascalCase used for?
- PascalCase (also called UpperCamelCase) capitalizes the first letter of every word with no separators. Example: "MyClassName". It is the standard for class names in most programming languages and for React component names.
- What is SCREAMING_SNAKE_CASE?
- SCREAMING_SNAKE_CASE (or CONSTANT_CASE) uses all uppercase letters with underscores between words. Example: "MAX_RETRY_COUNT". It is the convention for constants in JavaScript, Python, Java, and C.
- Is my text sent to a server?
- No. All conversions happen entirely in your browser using JavaScript. No data is transmitted to any server.
Use this tool from AI agents.
The CodeTidy MCP Server lets Claude, Cursor, and other AI agents
use this tool and 46 others directly. One command: npx @codetidy/mcp