Case Converter
Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case and more online. Rename variables and keys in one paste.
Runs in your browser · Nothing uploadedFree · No sign-up
Something not working, or missing a feature? Send feedback
About the Case Converter
Naming conventions differ between languages and systems. The Case Converter turns text or identifiers into camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, Title Case and more in one click.
Everything runs in your browser, so your input is never uploaded to a server.
How to use the Case Converter
- Paste text or a list of identifiers (one per line).
- Choose the target case.
- Copy the converted text.
Example
Input
userId firstName HTTPStatusCode lastLoginAt
Result
user_id first_name http_status_code last_login_at
Converted with snake_case. Each line is converted separately, and HTTPStatusCode splits into http, status and code.
Common mistakes
- Acronyms. An identifier such as userID splits into user and id, so PascalCase gives UserId. Rename acronyms by hand if your style guide keeps them capitalised.
- Numbers in names. Digits stay attached to the word before them, so address2Line becomes address2_line. Check names that mix digits and words.
- Converting whole sentences. Punctuation is treated as a word boundary and removed in identifier styles. Use Title Case or Sentence case for prose.
Works well with the Case Converter
- JSON to TypeScript: generate interfaces from JSON with the renamed keys.
- Word & Character Counter: count words and characters in the text.
- Meta Tag Generator: write a title-cased page title and its meta tags.
Frequently asked questions
How are words detected?
Spaces, punctuation, underscores, hyphens and changes from lower to upper case all mark word boundaries, so myHTTPServer and my_http_server convert the same way.
Which case for which language?
Typically camelCase for JavaScript variables, PascalCase for classes, snake_case for Python and databases, kebab-case for URLs and CSS classes, CONSTANT_CASE for constants.
What is the difference between Title Case and Sentence case?
Title Case capitalises the first letter of every word; Sentence case capitalises only the first word, like a normal sentence.
Can I convert many identifiers at once?
Yes. Put one per line and every line is converted with the same style.
Related tools
Remove Duplicate Lines
Remove duplicate lines from text online, keeping the first occurrence and the original order. Optionally ignore case, extra spaces and empty lines.
Sort Lines
Sort lines of text online alphabetically, naturally (item 2 before item 10), by number or by length, in ascending or descending order. Runs in your browser.
Remove Line Breaks
Remove line breaks from text online: join broken lines from a PDF or email into one paragraph, or into a comma-separated list. Optionally keep paragraph breaks.
Remove Extra Spaces
Remove extra spaces from text online: collapse repeated spaces and tabs, trim every line and squeeze blank lines. Clean pasted text in one click.
Slug Generator
Turn any title into a clean URL slug online: lowercase, accents removed, symbols dropped, words joined with hyphens or underscores. One slug per line.
Text to Binary
Free binary translator: convert text to binary code and translate binary back to English or any language, with a binary alphabet table. Copy or download the result.