How to use the case converter
- Paste your text.
- Click the target case; the result appears immediately.
- Check the variable-name preview when converting identifiers.
- Copy the result with one click.
Naming conventions are a style question until they are not: an API that expects user_id will reject userId, and a CSS class with a capital letter is a different selector from one without. Converting by hand across dozens of names is where typos appear.
This converter splits on spaces, hyphens, underscores and camel-case boundaries, then reassembles using the convention you pick. It handles acronyms the way most linters do — HTTPServer becomes http_server rather than h_t_t_p_server — because that is the behaviour that survives real code.
Which case where
camelCase— JavaScript, Java variables and methods.PascalCase— class names in most languages, React components.snake_case— Python and Ruby variables, SQL columns.kebab-case— CSS classes, URL slugs, file names.CONSTANT_CASE— constants and environment variables.- Title Case / Sentence case — headings and prose, where the rule is about words rather than identifiers.
Note that converting identifiers is lossless only in one direction: userID and user_id both normalise to the same form, so pick a convention and apply it consistently rather than round-tripping.
Frequently asked questions
Does it handle numbers?
Yes. v2Api and v2_api round-trip predictably, and digits stay attached to the segment they belong to.
What happens to existing punctuation?
Dots, quotes and other punctuation outside the word being converted are preserved for prose cases and dropped for identifier cases.
Can I convert a whole list?
Yes — paste multi-line text and every line is converted, which is useful for building SQL from a spreadsheet column.
Is my text sent anywhere?
No. Everything runs in the page.