01What is Casing Converter?
Renaming things between systems is tedious. Your database says created_at, your TypeScript wants createdAt, and your env file wants CREATED_AT. Paste an identifier or a phrase here and you get it back in twelve naming conventions at once: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, path/case, Title Case, Sentence case, UPPER CASE, lower case and Train-Case. The real work is finding the word boundaries, and the tool does it in three passes. First it splits wherever a lowercase letter or digit is followed by an uppercase letter, so myVariableName becomes my | Variable | Name and version2Api becomes version2 | Api. Then it splits a run of capitals before the last capital when a lowercase letter follows. That's how XMLHttpRequest becomes XML | Http | Request instead of one long blob. Finally, anything that isn't a letter or a number is treated as a separator and dropped. That covers hyphens, underscores, dots, slashes and spaces, plus commas, apostrophes and exclamation marks. The letter checks use Unicode categories, not plain A to Z. Crème brûlée keeps its accents and gives crèmeBrûlée in camelCase and CRÈME_BRÛLÉE in CONSTANT_CASE. Once the words are found, each format just joins them differently. camelCase lowercases the first word and capitalises the rest. PascalCase and Train-Case capitalise every word. snake, kebab, dot and path case lowercase everything and join with _, -, . or /. The Detected words line under the input shows the split, so you can check it before trusting any result. A few behaviours surprise people. Acronyms are normalised, so XMLParser comes out as xmlParser and XmlParser. Google's Java style guide recommends that form, but your codebase may not. A digit followed by lowercase letters is never split, so Response2xx stays one word. Apostrophes count as separators too, so "don't stop!" turns into donTStop. Sentence case lowercases every word after the first, which means proper nouns need fixing by hand. The converter works on one line of text at a time and treats the whole input as one name. Conversion happens as you type in the page itself, and clicking a result copies only that value to your clipboard.
Developers moving fields between databases, APIs and front-end code use it to rename identifiers into the convention each layer expects. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Casing Converter
- Type or paste text into the Input Text field, or pick one of the examples (camelCase, Sentence, kebab-case)
- Read the Detected words line to confirm the split looks right
- Find the convention you need in the list of results
- Click that row to copy the value; a check mark confirms the copy
- Use the reset icon to clear the input and start again
03Worked examples
- Input:
myVariableName - Result:
snake_case: my_variable_name; CONSTANT_CASE: MY_VARIABLE_NAME; PascalCase: MyVariableName - Three of the twelve results shown.
- Input:
XMLHttpRequest - Result:
camelCase: xmlHttpRequest; snake_case: xml_http_request; kebab-case: xml-http-request - A run of capitals followed by a capitalised word is split before the last capital, so XML stays one word.
- Input:
parseHTTPResponse2xx - Result:
camelCase: parseHttpResponse2xx; snake_case: parse_http_response2xx - A digit followed by lowercase letters is not split, so Response2xx stays one word.
- Input:
user_id - Result:
camelCase: userId; PascalCase: UserId; kebab-case: user-id - Input:
Crème brûlée - Result:
camelCase: crèmeBrûlée; CONSTANT_CASE: CRÈME_BRÛLÉE; kebab-case: crème-brûlée - Accented letters count as letters and keep their accents.
- Input:
don't stop! - Result:
camelCase: donTStop; snake_case: don_t_stop - Apostrophes count as separators, so contractions split into two words.
04Common use cases
- Turning a database column like created_at into a createdAt property for a TypeScript interface
- Converting a React component name such as UserProfileCard into user-profile-card for a file name or CSS class
- Producing a CONSTANT_CASE environment variable name like FEATURE_NEW_CHECKOUT from a feature description
- Renaming JSON keys when a Python API returns snake_case and the JavaScript client expects camelCase
- Making Title Case headings from URL slugs during a CMS migration
- Turning a file path like src/utils/helpers into a dot.case config key or a camelCase import alias
05Tips
- Digits stick to the letters before them, so version2Api splits as version2 | Api. Add an underscore if you want the number as its own word.
- If you need acronyms kept in capitals (XMLParser rather than XmlParser), fix them by hand afterwards. The tool always normalises them.
- Contractions split on the apostrophe, so remove apostrophes first if you're converting prose into identifiers.
- Paste a full file path to turn it straight into a key. Slashes are separators, so src/utils/helpers gives srcUtilsHelpers.
06Related concepts
camelCase, snake_case, kebab-case, Naming conventions, Identifiers.
Frequently Asked Questions
What is Casing Converter?
Casing Converter is a free, browser-based developer tool on AIDToolStack. Convert text between naming conventions It requires no installation or sign-up and works entirely in your browser.
Is Casing Converter free to use?
Yes. No sign-up, no fees and no usage cap.
Does Casing Converter store my data?
No. It runs in your browser; nothing is uploaded.