~/devtools / text-case
tool::text-case

Text Case
Converter

Convert text to camelCase, PascalCase, snake_case, kebab-case, and more naming conventions instantly.

ad · 728×90
camelCase
PascalCase
snake_case
SCREAMING_SNAKE_CASE
kebab-case
UPPER CASE
lower case
Title Case
ad · 300×250
// about this tool

About Text Case Converter

Naming conventions define how identifiers — variables, functions, classes, files — are formatted in code. Different languages and teams follow different standards: JavaScript prefers camelCase for variables, Python prefers snake_case, and CSS favors kebab-case for class names. Manually converting between these formats is tedious and error-prone, especially when working across language boundaries or refactoring codebases.

camelCase and PascalCase are dominant in object-oriented languages like JavaScript, TypeScript, Java, and C#. snake_case is the standard in Python, Ruby, and SQL column names. kebab-case is common in CSS, HTML attributes, and URL slugs. SCREAMING_SNAKE_CASE is universally used for constants. Title Case is used in headings, titles, and display labels across all domains.

This tool converts any input text to all eight case formats simultaneously, in real time. It recognizes word boundaries from spaces, underscores, hyphens, dots, and camelCase transitions — so whether you paste 'myVariableName', 'my_variable_name', or 'my-variable-name', you get the same correct output. Copy any result with a single click.

Common Use Cases
  • Convert variable names between camelCase and snake_case when switching languages
  • Transform API response keys from snake_case to camelCase for JavaScript
  • Generate CSS class names in kebab-case from plain text descriptions
  • Convert database column names to PascalCase for ORM model properties
  • Quickly reformat copied text into the naming convention your codebase uses
Frequently Asked Questions
Q. What is the difference between camelCase and PascalCase?
camelCase starts with a lowercase letter and capitalizes the first letter of each subsequent word (e.g. myVariableName). PascalCase capitalizes the first letter of every word including the first (e.g. MyVariableName). JavaScript uses camelCase for variables and functions, while classes and React components use PascalCase.
Q. Can I convert text that is already in camelCase or snake_case?
Yes. The tool automatically detects word boundaries from camelCase transitions, underscores, hyphens, spaces, and dots. So 'myVariableName', 'my_variable_name', and 'my-variable-name' all produce the same result across all eight formats.
Q. Does it handle acronyms like 'HTML' or 'API' correctly?
Consecutive uppercase letters (like HTML or API) are treated as a single word token. For example, 'HTMLParser' becomes 'html-parser' in kebab-case and 'htmlParser' in camelCase. If you need a different split, you can pre-separate the acronym with a space or underscore.