Developer Workflow

Convert text case for code names and headings

Convert labels, headings, CSV headers, and copied names into title case, uppercase, lowercase, camelCase, snake_case, or kebab-case before publishing or coding.

Problem

Copied names and headings often arrive with mixed capitalization, spaces, underscores, or separators. Inconsistent casing makes code identifiers harder to read, CSV headers harder to map, and published headings look unfinished.

When to use this

  • A label or heading needs title case, sentence case, uppercase, or lowercase before publishing.
  • A field name should become camelCase, snake_case, or kebab-case before it is used in code or documentation.
  • A list of headings, tags, or CSV headers needs consistent casing after sorting or cleanup.

Steps

  1. Step 1

    Paste the text or names to convert

    Start with the full heading, label list, CSV header row, or copied identifier block that needs consistent casing.

  2. Step 2

    Normalize repeated wording first

    Use find and replace for repeated product names, acronyms, or labels before converting case so the final output is consistent.

  3. Step 3

    Choose the destination case

    Use title case for headings, uppercase for short labels, camelCase for JavaScript-style identifiers, snake_case for database fields, and kebab-case for URL or CSS-style names.

  4. Step 4

    Sort multi-line labels when review matters

    When converting a list of labels or field names, sort the cleaned lines so similar entries are easier to compare.

  5. Step 5

    Check length before publishing

    Use a count at the end when the converted text must fit a heading, button label, table column, or metadata field.

Example

Convert copied field names into snake_case

Input

User Display Name
Account Created At
Last Login IP Address

Output

user_display_name
account_created_at
last_login_ip_address

Common mistakes

Converting acronyms without reviewing them

Acronyms such as API, URL, ID, and IP may need manual review after automatic case conversion.

Using display casing for code identifiers

Title case looks good in headings, but code identifiers usually need camelCase, snake_case, or kebab-case.

FAQ

Which case should I use for code identifiers?

Use the convention expected by the destination. JavaScript often uses camelCase, databases often use snake_case, and URLs or CSS-style names often use kebab-case.

Can case conversion handle headings and CSV headers?

Yes. It is useful for turning copied headings, labels, spreadsheet headers, and field names into a consistent style.

Should I sort labels before or after converting case?

Usually convert case first, then sort the final labels. Sorting after conversion makes the comparison match the actual output you will use.