Converter Tool

String Case Converter

Convert one identifier or a whole list between camelCase, snake_case, kebab-case, and the other cases you use in code.

Line-by-line Slugify 100% Client-Side
0 chars

Convert names between code conventions

You rename things all week: a SQL column becomes a JSON key, that key becomes a React prop, that prop becomes an env var. This converter takes one string or a list and shows every common programming case at once.

Paste user_id and copy userId. Paste a list of columns and copy the snake_case or camelCase column as a block. Nothing is uploaded.

If you are flattening API data into a spreadsheet instead of renaming keys, use the JSON to CSV Converter.

Supported cases

The grid updates as you type:

  • camelCase and PascalCase for JavaScript, TypeScript, and C#
  • snake_case for Python and many database columns
  • kebab-case for CSS classes and URLs
  • CONSTANT_CASE for env vars and constants
  • Title Case and Sentence case for labels
  • dot.case and path/case for config keys and file fragments
  • slug for a URL-safe line

Input can already be mixed (My_Variable-Name). The splitter breaks on separators and on lowerUpper boundaries.

Batch lists of columns and keys

Each line is converted independently. That is the point of the sample:

user_id
created_at
XMLParser
API-Key
Hello World!

user_id becomes userId / USER_ID. Hello World! becomes helloWorld in camelCase and hello-world as a slug.

Common use cases

  • Rename SQL columns to JSON keys (user_iduserId)
  • Turn React props into env vars (apiBaseUrlAPI_BASE_URL)
  • Slugify a heading for a docs path
  • Normalize a mixed list of keys before a review

Slugify vs case convert

Case convert keeps programming tokens. Slugify is for titles and headings: lowercase, strip combining marks, replace punctuation with -. Über API Key! becomes uber-api-key as a slug, not a camelCase identifier.

How to use

  1. Paste one name or a list into Input.
  2. Leave Preserve acronyms on unless you want xmlParser instead of XMLParser.
  3. Click a result card to copy that format, or Copy All.
  4. Use Load Sample to see a mixed list.

Privacy

Conversion is local. Clear the textarea or close the tab to drop the input. The 1,000,000 character cap exists so a huge paste does not freeze the tab.

Frequently Asked Questions

Does this convert each line separately?

Yes. Paste a list of column names or keys, one per line. Each line is converted on its own so a SQL column list can become JSON keys in one pass.

What is the difference between kebab-case and slugify?

kebab-case keeps the tokens from the identifier. Slugify lowercases the line, strips accents, and replaces leftover punctuation with hyphens so a title can become a URL path.

How are acronyms handled?

With Preserve acronyms on, short all-caps tokens such as API or XML stay uppercase when the splitter can see them. Mixed strings like XMLParser still split into XML and Parser.

Is my text uploaded?

No. Conversion runs in the browser. There is no convert API.

Can I copy every format at once?

Yes. Copy All copies the labeled grid. Each card also copies that format alone.