Skip to content
Devtoolry

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

  1. Paste text or a list of identifiers (one per line).
  2. Choose the target case.
  3. Copy the converted text.

Example

Rename keys for a Python API

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

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.