camelCase, snake_case and kebab-case converter
Convert text to camelCase, snake_case, kebab-case and more.
Editor
camelCase, snake_case and kebab-case converter: what it does
Turn plain words or an existing name into the naming style your code needs: camelCase for variables, PascalCase for classes, snake_case for Python and databases, kebab-case for URLs and CSS, CONSTANT_CASE for constants. Each line is converted on its own.
camelCase, snake_case and kebab-case converter: how to use it
- Paste one name or phrase per line.
- Choose the naming style.
- Select Apply and copy the converted names.
camelCase, snake_case and kebab-case converter: when to use it
- Rename variables, functions or JSON keys to the convention of a new code base.
- Build file or folder names in kebab-case from a list of page titles.
- Convert column names from a spreadsheet into snake_case for a database or a Python script.
camelCase, snake_case and kebab-case converter: examples
Input
user first name order total price
Result
userFirstName orderTotalPrice
Input
userFirstName order-total-price MAX_RETRY_COUNT
Result
user_first_name order_total_price max_retry_count
camelCase, snake_case and kebab-case converter: questions and answers
Can it convert between styles, like snake_case to camelCase?
Yes. Words are detected from spaces, hyphens, underscores and capital letters, so any style can become any other.
What happens to symbols and accents?
Symbols are treated as word breaks and dropped. Letters keep their accents.
Does it handle acronyms like HTTP or ID?
A run of capitals is treated as one word, so “HTTPServer” becomes “http_server” in snake_case and “httpServer” in camelCase.
Can I convert many names at once?
Yes. Put one name per line; every line is converted on its own and the order is kept.
Is my text sent to a server?
No. Everything runs in your browser on your own device, so your text never leaves it.
Related tools
Tools people often use together with this one.
- Case converter
Change text to UPPERCASE, lowercase, Title Case and more.
- URL slug generator
Turn any title into a clean, lowercase URL slug.
- Remove accents from text
Replace accented letters with plain ones, or drop non-ASCII characters.
- Remove punctuation
Delete punctuation marks, or all digits, from your text.
- Straighten curly quotes
Replace smart quotes with plain straight quotes.
- Remove emojis from text
Strip emoji and pictographs, keep the words.