tools / text
Convertisseur de casse
Convertissez du texte en camelCase, snake_case, et plus encore.
ENTRÉE
RÉFÉRENCE
camelCasemyVariableNameVariables JavaScript, propriétés d'objets
PascalCaseMyClassNameClasses, composants React, types TypeScript
snake_casemy_variable_nameVariables Python, colonnes de base de données, Ruby
kebab-casemy-variable-nameClasses CSS, attributs HTML, slugs d'URL
CONSTANT_CASEMY_CONSTANTConstantes, variables d'environnement
À PROPOS DE CET OUTIL
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.
COMMENT UTILISER
- 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
CAS D'USAGE COURANTS
- 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
CONSEILS ET ERREURS COURANTES
- 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
AUTRES 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.
GUIDES ASSOCIÉS
Les conventions de nommage expliquées
camelCase, snake_case, PascalCase, kebab-case et SCREAMING_SNAKE_CASE — ce que chacune représente, où chacune est utilisée et comment convertir entre elles.
OUTILS ASSOCIÉS
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.