Map Extract
Free tool

Convert names to camelCase, snake_case and more

Paste field names, column headers or plain phrases, one per line. All eight naming styles are shown side by side, each with its own copy button, so you can take the one your CRM, spreadsheet or code expects.

Runs in your browser. Nothing you enter is uploaded.

Example: preparing headers for a CRM import

An agency is moving a prospect list into a CRM whose import template uses snake_case, while its developer needs camelCase names for a small script. The headers are a mix of plain words, an existing snake_case field and a programming name with an acronym in it.

Each line is split into words first, wherever there are spaces, underscores, hyphens or a change from small to capital letters. A run of capitals such as HTTP is kept together as one word, so parseHTTPResponse becomes parse_http_response rather than p_a_r_s_e.

Input
contact email
Postcode District
gm_phone_e164
parseHTTPResponse
Result
snake_case:  contact_email, postcode_district, gm_phone_e164, parse_http_response
camelCase:   contactEmail, postcodeDistrict, gmPhoneE164, parseHttpResponse
kebab-case:  contact-email, postcode-district, gm-phone-e164, parse-http-response

Converting names

  1. List the names

    One per line. Empty lines are ignored. Paste a whole header row by first putting each column name on its own line.

  2. Find your style

    The table lists every style together: snake_case, camelCase, kebab-case, PascalCase, CONSTANT_CASE, Train-Case, dot.case and path/case.

  3. Copy one column

    Each style's copy button takes the full converted list, one name per line, in the same order as your input.

Which style is used where

camelCase
First word lower case, later words capitalised. Common in JavaScript and many web APIs.
snake_case
Lower case words joined by underscores. Common in databases, Python and CSV exports from data tools.
kebab-case
Lower case words joined by hyphens. Used in web addresses and CSS class names.
CONSTANT_CASE
Capitals joined by underscores, used for settings and environment variables.

Questions people ask

How do I convert a header row from Excel?

Copy the row of headers, paste it here, and replace the tabs with line breaks first, for example with the find and replace tool using a regular expression. Then copy the style you want and paste it back with Paste Special and Transpose to turn the list into a row again.

What happens to numbers and symbols?

Digits stay attached to their word, so e164 remains e164 in every style. Punctuation such as full stops, brackets and ampersands is treated as a word break and dropped, which is what most systems want in a field name.

Is PascalCase the same as camelCase?

Nearly. Both run the words together with capitals at each new word. PascalCase also capitalises the first word, as in PostcodeDistrict, and is common for class and type names. camelCase keeps the first word small, as in postcodeDistrict.

Where your data goes

Field names are converted by code running in this tab. Nothing is posted to a server, so internal column names stay private.

Checked against the tool on

Top