DeveloperKit

String Case Converter

Convert text and variable names to camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, and more, all at once. Free, private, and 100% in your browser.

Text or Identifiers

Converted

  • camelCase

    JavaScript/Java variables and functions, JSON keys

    userAccountId
  • PascalCase

    Classes, types, React components, C# members

    UserAccountId
  • snake_case

    Python, Ruby, Rust variables, SQL columns

    user_account_id
  • CONSTANT_CASE

    Constants and environment variables

    USER_ACCOUNT_ID
  • kebab-case

    URLs, CSS classes, file names, CLI flags

    user-account-id
  • COBOL-CASE

    COBOL, some HTTP header conventions

    USER-ACCOUNT-ID
  • Train-Case

    HTTP headers (Content-Type)

    User-Account-Id
  • dot.case

    Config keys, i18n keys, package names

    user.account.id
  • path/case

    File paths and routes

    user/account/id
  • Title Case

    Headings and titles

    User Account Id
  • Sentence case

    Labels, messages, and sentences

    User account id
  • lower case

    Plain lowercase words

    user account id
  • UPPER CASE

    Plain uppercase words

    USER ACCOUNT ID

Convert Between Naming Conventions

Every language and tool has its own naming convention: JavaScript wants camelCase, Python and SQL prefer snake_case, URLs and CSS use kebab-case, and environment variables use CONSTANT_CASE. Moving data between them means renaming a lot of identifiers. Paste them here and copy the version you need.

One input, every case
getHTTPResponseCode

camelCase      getHttpResponseCode
snake_case     get_http_response_code
kebab-case     get-http-response-code
CONSTANT_CASE  GET_HTTP_RESPONSE_CODE

Features

  • 13 cases at once

    camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, COBOL-CASE, Train-Case, dot.case, path/case, Title Case, Sentence case, lower, and UPPER.

  • Smart word splitting

    Understands every input style: getHTTPResponse becomes get, HTTP, Response, and user_account-ID becomes user, account, ID.

  • Acronyms your way

    Write userId or keep acronyms as userID and parseHTTPResponse, whichever your style guide prefers.

  • Bulk conversion

    Paste a list of names, one per line, and every line is converted separately. Ideal for renaming database columns or JSON keys.

  • Detects the input case

    The tool tells you which convention your input uses, so you can spot inconsistent naming quickly.

  • Private by design

    Conversion happens in your browser. Nothing you paste is uploaded.

How to Convert a String's Case

  1. Type or paste text or identifiers, one per line.
  2. Check the detected words below the input.
  3. Optionally keep acronyms in capitals.
  4. Click Copy on the case you need.

Frequently Asked Questions

What is the difference between camelCase and PascalCase?

Both join words without separators and capitalize each word, but camelCase starts with a lowercase letter (userName) and PascalCase starts with an uppercase letter (UserName). camelCase is used for variables and functions in JavaScript and Java; PascalCase is used for classes, types, and React components.

When should I use snake_case or kebab-case?

snake_case (user_name) is the convention for variables in Python, Ruby, and Rust and for database columns. kebab-case (user-name) is used in URLs, CSS class names, file names, and command-line flags, where underscores are less readable or not allowed.

What is CONSTANT_CASE?

CONSTANT_CASE, also called SCREAMING_SNAKE_CASE, is snake_case in uppercase (MAX_RETRY_COUNT). It is used for constants and environment variables in most languages.

How are acronyms like HTTP or ID handled?

A run of capitals is treated as one word, so XMLHttpRequest splits into XML, Http, and Request. By default acronyms are capitalized like normal words (xmlHttpRequest, userId). Turn on "Keep acronyms" to keep them in capitals (userID, parseHTTPResponse).

Does it work with accented and non-Latin letters?

Yes. Word splitting uses Unicode letter categories, so names like naïveCafé or straßeName are split and converted correctly.

  • Text Diff Checker

    Compare two texts or code snippets side by side, with changed words highlighted and a downloadable patch.

  • Regex Tester

    Test JavaScript regular expressions live, with highlighted matches, capture groups, and find and replace.

  • Word, Character & Byte Counter

    Count words, characters, sentences, lines, and UTF-8 bytes as you type, with reading time and length limits.

  • JSON Formatter

    Beautify, minify, and validate JSON instantly with exact line and column error reporting.