What it does
Pick a case style and your text is converted immediately. Multi-line input is converted line by line, which makes it handy for renaming a list of variables or column names.
Styles for code
- camelCase and PascalCase for variables, functions and classes.
- snake_case and CONSTANT_CASE for Python, databases and constants.
- kebab-case for CSS classes and URLs, dot.case for config keys, path/case for routes.
Words are split on spaces, punctuation and existing camelCase boundaries, so XMLHttpRequest becomes xml_http_request. Accented and non-Latin letters are handled.
Example and what to expect
userID and HTTP2Server becomes user_id_and_http2_server in snake_case, userIdAndHttp2Server in camelCase and USER_ID_AND_HTTP2_SERVER in CONSTANT_CASE. Acronyms are treated as one word, and a digit stays attached to the word before it, so HTTP2 is not split.
- The code styles (camel, Pascal, snake, kebab, constant, dot, path) drop punctuation and collapse repeated spaces, so
Hello, World!becomeshello-world. UPPER, lower, Title, Sentence, inverse and alternating keep punctuation and spacing. - Title Case capitalises every word, including small words such as "the" and "of", and does not know proper nouns or style-guide rules. Review headings before publishing them.
- Case mapping follows Unicode rules, so
straßebecomesSTRASSEin upper case. Scripts without letter case, such as Japanese, pass through unchanged and are only re-joined by the code styles.
To turn a title into a URL path use the Slug Generator, which also handles accents. After renaming a list of identifiers, Sort & Deduplicate Lines can order it and remove repeats.
One phrase in every style
This is what the input User profile image URL becomes in each style:
UPPER CASE USER PROFILE IMAGE URL
lower case user profile image url
Title Case User Profile Image Url
Sentence case User profile image url
camelCase userProfileImageUrl
PascalCase UserProfileImageUrl
snake_case user_profile_image_url
kebab-case user-profile-image-url
CONSTANT_CASE USER_PROFILE_IMAGE_URL
dot.case user.profile.image.url
path/case user/profile/image/urlNotice that Title Case capitalizes only the first letter of each word, so URL becomes Url there; the code styles treat an acronym as one ordinary word.
Which case do I use where?
- JavaScript and TypeScript: camelCase for variables and functions, PascalCase for classes and components.
- Python: snake_case for functions and variables, PascalCase for classes and CONSTANT_CASE for constants, as in PEP 8.
- Java and C#: camelCase for local names and PascalCase for types; Java constants are CONSTANT_CASE.
- CSS and URLs: kebab-case for class names, properties and readable paths.
- Databases: snake_case is the common convention for table and column names.
- Environment variables: CONSTANT_CASE, for example
DATABASE_URL.
Frequently asked questions
What is the difference between camelCase and PascalCase?
Both join the words without separators and capitalize each word. camelCase starts with a lowercase letter and PascalCase with an uppercase one.
Should I use snake_case or kebab-case?
Use the one your language or format expects. Hyphens are not allowed in most variable names, so code uses snake_case, while CSS classes and URLs use kebab-case.
Can I convert a whole list of names at once?
Yes. Multi-line input is converted line by line, so you can paste one name per line.
Is my text uploaded?
No. The conversion runs in your browser.
Privacy
This tool runs entirely in your browser. What you enter is processed on your device and is not sent to a server.