DevTools Logo

Case Converter & Text Formatter

Case Converter & Text Formatter

Convert text between 14 different case formats including camelCase, snake_case, kebab-case, and more with batch processing

Input & Settings

4 of 14 cases selected

Case Conversion Examples & Use Cases

Variable Naming Conventions

Convert between different programming language conventions.

Input: "user profile data"  JavaScript: userProfileData (camelCase) Python: user_profile_data (snake_case) C#: UserProfileData (PascalCase) Constants: USER_PROFILE_DATA (CONSTANT_CASE)  Perfect for converting between language conventions!

Function & Method Names

Standardize function naming across codebases.

Input: "get user by email address"  camelCase: getUserByEmailAddress snake_case: get_user_by_email_address PascalCase: GetUserByEmailAddress kebab-case: get-user-by-email-address  Batch convert entire function lists at once!

    Examples

    snake_case → camelCase

    Input
    user_profile_id
    Output
    userProfileId

    Split on underscores, lowercase the rest, then capitalize every word after the first — the standard JavaScript identifier shape.

    PascalCase → kebab-case and snake_case

    Input
    UserProfileID
    Output
    kebab-case    user-profile-id
    snake_case    user_profile_id
    CONSTANT_CASE USER_PROFILE_ID
    lower         userprofileid
    UPPER         USERPROFILEID

    The same source identifier produced in five targets at once — useful when a backend, frontend, CSS class, and URL slug all need to agree.

    Batch-convert a list of names

    Input
    first name
    last name
    email address
    phone number
    Output
    first name        → firstName, first_name, first-name
    last name         → lastName,  last_name,  last-name
    email address     → emailAddress, email_address, email-address
    phone number      → phoneNumber, phone_number, phone-number

    Paste one column, get every common convention — handy for sketching a migration from a spreadsheet to an ORM model.

    About this tool

    Naming conventions differ across languages, databases and file systems: JavaScript variables use camelCase, React components use PascalCase, Python and SQL columns favour snake_case, URLs and CSS classes use kebab-case, and constants use CONSTANT_CASE. Retyping identifiers by hand to switch between them is tedious and introduces typos. This converter transforms text between 14 case formats instantly.

    It handles single identifiers or whole lists in batch mode, with options to preserve or strip numbers and symbols, and a live preview so you can see the result before copying. It's ideal for generating URL slugs, converting API fields to database columns, or normalizing a list of names to one convention.

    How to use

    1. Enter your text

      Type or paste one identifier, or many lines for batch conversion.

    2. Pick the target case

      Choose from camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and more.

    3. Tune the options

      Decide whether to preserve numbers and symbols to match your target convention.

    4. Copy the result

      Copy the converted text — a single value or the whole batch.

    Use cases

    Shaping API fields into database columns

    JavaScript backends emit `userProfileId`; SQL schemas want `user_profile_id`. Convert between the two without hand-editing every row.

    Generating URL slugs and component names

    Turn a blog post title or product name into a kebab-case slug for the route, then a PascalCase identifier for the React component.

    Normalizing identifiers across a codebase

    Reformat a list of legacy names so style guides are satisfied everywhere — no more "userId" mixed with "user_id" in adjacent files.

    Converting class/file names during a migration

    Bulk-rename a folder of components when switching between frameworks — PascalCase React files to kebab-case Angular selectors, or vice versa.

    Common case formats

    FormatExample
    camelCaseuserProfileId
    PascalCaseUserProfileId
    snake_caseuser_profile_id
    kebab-caseuser-profile-id
    CONSTANT_CASEUSER_PROFILE_ID
    Title CaseUser Profile Id

    Supports 14 formats with batch processing — all client-side.

    Common mistakes

    Mistake:Lowercasing only the first letter of a PascalCase identifier and calling it camelCase.

    Fix:Without a full case conversion you lose word boundaries — `XMLHttpRequest` becomes `xMLHttpRequest`, not `xmlHttpRequest`. Let a real word-splitter handle acronyms.

    Mistake:Treating numbers as part of the previous word.

    Fix:Decide a policy for digits up front (`user2Id` → `user_2_id` vs `user2_id`) and apply it consistently — mixed outputs across files make search-and-replace impossible.

    Mistake:Trying to hand-convert identifiers in bulk.

    Fix:A single missed underscore or stray capital costs a code-review round-trip. Let the converter do it once, then paste the batch back.

    Mistake:Assuming locale-independent casing for non-ASCII identifiers.

    Fix:English upper/lower rules don't match Turkish (`I`/`ı`) or many other scripts — verify the tool applies Unicode default case folding consistently across the inputs you give it.

    Frequently asked questions

    References & standards