tools / text
Case Converter
Convert text to camelCase, snake_case, and more.
INPUT
REFERENCE
camelCasemyVariableNameJavaScript variables, object properties
PascalCaseMyClassNameClasses, React components, TypeScript types
snake_casemy_variable_namePython variables, database columns, Ruby
kebab-casemy-variable-nameCSS classes, HTML attributes, URL slugs
CONSTANT_CASEMY_CONSTANTConstants, environment variables
ABOUT THIS TOOL
Paste text and convert it to camelCase, PascalCase, snake_case, kebab-case, UPPERCASE, lowercase, or Title Case in one click. Developers use it when reformatting variable names or copying content between different coding conventions. It splits input on spaces, hyphens, underscores, and capital-letter boundaries, so you can feed it a phrase, an existing snake_case string, or a messy mix and get a clean result in the target format. This saves the manual retyping that happens when a database column named user_id needs to become userId in a JavaScript file, or when a CSS class needs to match a JSON key elsewhere in a project.
HOW TO USE
- Paste the text, variable name, or phrase you want to convert
- Choose the target case format from the available options
- Review the converted output shown below the input
- Click the copy button to grab the result
- Repeat with a different case option if you need the same text in multiple formats
COMMON USE CASES
- A developer renaming a REST API field from snake_case to camelCase for a JavaScript frontend
- A programmer converting a spreadsheet column header into a valid Python variable name
- A content editor turning a blog headline into Title Case for a CMS field
- A designer converting a component name into kebab-case for a CSS class or file name
- A database admin reformatting table names into consistent snake_case before a migration
TIPS & COMMON MISTAKES
- Acronyms in the original text (like 'ID' or 'URL') may get split into separate letters when converted, so double-check camelCase and PascalCase output on strings containing acronyms
- Numbers attached to words are kept in place but won't add extra separators, so 'step2' stays 'step2' rather than becoming 'step_2'
- Title Case here capitalizes each word rather than applying formal style-guide rules about small words like 'a' or 'the', so proofread if you need publication-grade title casing
- Converting already-mixed-case text (like MixedCASE) can produce unexpected splits — clean up obvious typos before converting for best results
MORE QUESTIONS
- What's the difference between camelCase and PascalCase?
- camelCase starts with a lowercase letter (userName), while PascalCase capitalizes the first letter too (UserName). camelCase is common for variables and function names, PascalCase for class and component names.
- Can this tool convert code with existing camelCase back into snake_case?
- Yes, the converter detects capital-letter boundaries in camelCase or PascalCase input and uses them as word breaks, so converting to snake_case or kebab-case works in both directions.
- Does it handle full sentences or only short variable-style strings?
- It works on full sentences too — spaces and punctuation are treated as word separators — but the practical use case is usually short strings like names, headers, and identifiers rather than paragraphs.
- Will special characters like accented letters convert correctly?
- Accented characters are generally preserved as-is rather than stripped or transliterated, so if you need a strictly ASCII slug-style output, pair this with a dedicated slug tool instead.
RELATED GUIDES
Naming Conventions Explained
camelCase, snake_case, PascalCase, kebab-case, and SCREAMING_SNAKE_CASE — what each one is, where each is used, and how to convert between them.
RELATED TOOLS
chrf&rlclorem
Character Counter
Count characters, letters, digits, spaces, and lines in text.
Find and Replace
Find and replace text with regex and case-sensitivity options.
Line Counter
Count lines, empty lines, and analyze line length distribution.
Lorem Ipsum Generator
Generate placeholder lorem ipsum text by paragraphs, sentences, or words.