Skip to content

Menu

Case Converter

Convert text between camelCase, snake_case, PascalCase, kebab-case and more

Runs entirely in your browserText & DiffFree, no sign-up
Loading tool

01What is Case Converter?

Renaming things across languages is fiddly. A column called user_first_name in the database becomes userFirstName in JavaScript, UserFirstName in a Go struct and USER_FIRST_NAME as an environment variable. Type or paste a name here and the converter shows it in eleven formats at once, each with its own Copy button: camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, kebab-case, Title Case, UPPERCASE, lowercase, Sentence case, dot.case and path/case. The interesting part is how it finds word boundaries, because every joined format depends on that. The splitter runs a few rules in order. A lowercase letter followed by a capital starts a new word, so getUserProfile splits into get, User, Profile. A run of capitals followed by a capitalised word breaks before the last capital, so XMLHttpRequest becomes XML, Http, Request. A digit followed by a capital is split too, which turns v2Api into v2 and Api. Finally, anything that isn't a letter or digit acts as a separator and is dropped. That covers underscores, hyphens, dots, slashes, spaces and punctuation. Letters from any script survive, so café crème comes out as café_crème or CAFÉ_CRÈME. Each line is converted separately, which means you can paste a list of column names one per line and get a list back in every format. A worked example helps. Paste getUserByID. The splitter sees get, User, By and ID. snake_case gives get_user_by_id, kebab-case gives get-user-by-id and SCREAMING_SNAKE_CASE gives GET_USER_BY_ID. But camelCase gives getUserById, not your original. That's on purpose. Every word after the first is rebuilt as one capital plus lowercase, so acronyms are normalised. That normalisation is the main limit to keep in mind. If your style guide keeps acronyms upper-case, as Go's naming advice does with ID and URL, you'll need to fix those by hand. Two formats also behave differently from the rest. UPPERCASE and lowercase change the letters only and keep your spacing and punctuation exactly as typed. Sentence case lowercases every word and capitalises only the first, so proper nouns lose their capitals. The tool doesn't know a word list, so it can't split a single run of lowercase like username into user and name. The conversion is plain string handling in the page, so names from a private schema stay on your own machine.

Developers moving names between JavaScript, Python, Go and SQL use it to get every naming style for an identifier in one paste. The tool runs entirely in your browser, so your data never leaves your device.

02How to use Case Converter

  1. Type or paste into the Input Text box, one name per line if you have several
  2. Read the Conversions list, which fills in as you type
  3. Click Copy next to the format you need
  4. Try an example such as getUserProfileData or my_api-endpoint.v2/users to see how separators are handled
  5. Use the reset control to clear the input and start over

03Worked examples

Input: user_first_name
Result: camelCase userFirstName · PascalCase UserFirstName · kebab-case user-first-name · SCREAMING_SNAKE_CASE USER_FIRST_NAME
Input: getUserByID
Result: snake_case get_user_by_id · camelCase getUserById
ID is split off as its own word and rebuilt as Id, so converting back to camelCase doesn't restore getUserByID.
Input: XMLHttpRequest
Result: snake_case xml_http_request · dot.case xml.http.request · Title Case Xml Http Request
A run of capitals followed by a capitalised word breaks before the last capital: XML, Http, Request.
Input: my_api-endpoint.v2/users
Result: camelCase myApiEndpointV2Users · kebab-case my-api-endpoint-v2-users · path/case my/api/endpoint/v2/users
Underscores, hyphens, dots and slashes are all treated as separators.
Input: café crème
Result: snake_case café_crème · SCREAMING_SNAKE_CASE CAFÉ_CRÈME · PascalCase CaféCrème
Accented letters are kept as letters, not dropped as punctuation.
Input: THE QUICK brown FOX
Result: Sentence case The quick brown fox · Title Case The Quick Brown Fox · camelCase theQuickBrownFox

04Common use cases

  • Turning JavaScript camelCase props into Python snake_case names while porting a module
  • Converting a pasted list of snake_case database columns into PascalCase Go struct fields in one go
  • Making SCREAMING_SNAKE_CASE environment variable names from a config key like database.pool-size
  • Turning a page title into a kebab-case URL slug or file name
  • Mapping snake_case API response keys to camelCase for a TypeScript interface
  • Checking how an acronym-heavy name like XMLHttpRequest will split before you run a codemod

05Tips

  • Acronyms are normalised in joined formats. httpURL becomes http_url in snake_case and HttpUrl in PascalCase, so restore ID or URL by hand if your style guide keeps them upper-case.
  • A digit followed by a capital splits, but a digit followed by a lowercase letter doesn't. v2Api gives v2_api, while v2api stays one word.
  • UPPERCASE and lowercase ignore word splitting entirely. Use SCREAMING_SNAKE_CASE when you want underscores between words.
  • Paste a whole column list at once. Every line is converted on its own and blank lines stay blank.

06Related concepts

Naming convention, Identifier style, Code refactoring, camelCase, snake_case.

Frequently Asked Questions

What is Case Converter?

Case Converter is a free, browser-based developer tool on AIDToolStack. Convert text between camelCase, snake_case, PascalCase, kebab-case and more It requires no installation or sign-up and works entirely in your browser.

Is Case Converter free to use?

Yes. No sign-up, no fees and no usage cap.

Does Case Converter store my data?

No. It runs in your browser; nothing is uploaded.

Related Tools

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe