What this case converter does
Every language and framework has its own naming conventions: camelCase for JavaScript variables, PascalCase for classes and React components, snake_case in Python and SQL, kebab-case in URLs and CSS, and CONSTANT_CASE for environment variables. This tool splits any input into words, whatever its current style, and shows it in all common conventions at once so you can copy the exact form you need.
How to use it
- Type or paste one or more names into the input, one per line.
- Any style is accepted:
get user by id,getUserById,get_user_by_idorGET-USER-BY-ID. - Each card shows the result in one convention. Click Copy on the one you need.
- Multiple lines are converted line by line, which is handy for renaming a whole list of fields.
Practical examples
- API to database: convert JSON fields like
createdAtanduserIdtocreated_atanduser_idfor a SQL migration. - Component names: turn a design spec's "primary action button" into
PrimaryActionButtonfor a React file andprimary-action-buttonfor its CSS class. - Environment variables: convert
stripe secret keytoSTRIPE_SECRET_KEY. - URL slugs: generate
how-to-compress-imagesfrom a heading.
Tips and edge cases
- Acronyms are split by case changes:
parseHTTPResponsebecomesparse,http,response. Many style guides preferparseHttpResponsefor readability. - Numbers stay attached to the preceding word, so
version2Updatebecomesversion2_update. - Accented letters are preserved. If you need ASCII-only identifiers, remove diacritics first.
- Leading underscores or dollar signs used for private members are treated as separators and dropped.
- Up to 2,000 lines are converted live; the work is deferred so typing remains smooth.