Different programming languages and conventions use different naming cases. JavaScript favors camelCase, Python uses snake_case, CSS uses kebab-case, and constants use UPPER_SNAKE_CASE. This tool converts text between all common case formats instantly, handling both single words and full sentences.
Paste or type text into the input field and click any case format button to convert instantly. Supported formats include UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, CONSTANT_CASE, and kebab-case. The tool intelligently detects word boundaries from spaces, underscores, hyphens, and camelCase transitions. Results can be copied with one click.
Case conversion is a daily task for developers renaming variables across different language conventions - JavaScript camelCase, Python snake_case, CSS kebab-case, and Go PascalCase. It is also used for normalizing text data, creating consistent naming in codebases, converting database column names between conventions, generating URL-friendly slugs, and transforming headers or titles into proper formatting for content management systems.
The converter first tokenizes input into words by splitting on whitespace, underscores, hyphens, dots, and camelCase boundaries (detecting transitions from lowercase to uppercase). Each conversion function then reassembles the words with the appropriate separators and capitalization. CamelCase detection uses a regex that identifies sequences like 'myVariable' by finding lowercase-to-uppercase transitions. Title Case capitalizes the first letter of every word.
camelCase starts with a lowercase letter and capitalizes the first letter of each subsequent word, with no separators: myVariableName. It is the standard naming convention in JavaScript, Java, and TypeScript for variables and functions.
PascalCase (also called UpperCamelCase) capitalizes the first letter of every word, including the first: MyClassName. It is used for class names in most languages. camelCase starts lowercase: myVariableName.
kebab-case (also called dash-case) uses lowercase letters separated by hyphens: my-css-class. It is the standard in CSS class names, HTML attributes, and URL slugs.
snake_case uses lowercase letters separated by underscores: my_variable_name. It is the standard naming convention in Python, Ruby, and Rust.
Generate clean, SEO-friendly URL slugs from any text with transliteration support.
Generate TypeScript interfaces and types from JSON data automatically.
Escape strings for JSON and JavaScript. Convert special characters to safe escape sequences like \n, \t, \u00A9.
Transform, format, generate, and encode data instantly. Private, fast, and always free.
Browse All Tools