DevTools Hub
All tools

Case Converter

Convert names between every common convention at once — camelCase, snake_case, kebab-case and the rest. Acronyms stay intact and pasted lists convert line by line.

Text
One name, or a whole list — each line converts on its own.

1 line. Acronyms are kept together, so XMLHttpRequest becomes xml_http_request rather than x_m_l_http_request.

Every case
Click the copy button on the one you need.
camelCaseJavaScript variables and functions

xmlHttpRequest

PascalCaseClasses, React components, types

XmlHttpRequest

snake_casePython, Ruby, SQL columns

xml_http_request

kebab-caseURLs, CSS classes, file names

xml-http-request

CONSTANT_CASEEnvironment variables, constants

XML_HTTP_REQUEST

Title CaseHeadings and labels

Xml Http Request

Sentence caseBody copy and descriptions

Xml http request

dot.caseConfig keys, namespaces

xml.http.request

path/caseFile paths and routes

xml/http/request

lower caseAll lowercase, spaces kept

xml http request

UPPER CASEAll uppercase, spaces kept

XML HTTP REQUEST

What the Case Converter does

  • Converts names into every common convention at once — camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and more.
  • Handles acronyms correctly, so XMLHttpRequest becomes xml_http_request rather than x_m_l_http_request.
  • Converts each line of a pasted list independently, so you can rename a whole set of fields in one go.
  • Accepts input in any convention — it works out the word boundaries for you.

What it doesn't do

  • It doesn't translate or correct spelling.
  • It doesn't preserve intentional capitalisation inside a word, such as a brand name.
  • It doesn't convert code in place — it converts identifiers you paste in.

Frequently asked questions

Which case should I use where?

camelCase for JavaScript variables and functions, PascalCase for classes, types and React components, snake_case for Python and SQL columns, kebab-case for URLs, CSS classes and file names, and CONSTANT_CASE for environment variables. Matching your language's convention matters more than any individual preference.

How are acronyms handled?

A run of capitals followed by a capitalised word is treated as one unit, so XMLHttpRequest splits into XML, Http and Request. This is what most style guides expect and what naive converters get wrong.

Can I convert a whole list at once?

Yes. Paste one name per line and each converts independently, with blank lines preserved. It's the quickest way to rename a set of database columns or API fields consistently.

Related reading

camelCase, snake_case, kebab-case: which to use whereA short guide to the naming conventions you meet daily, which language expects which, and why acronyms break so many automatic converters.28 July 2026 · 1 min read
See all text & writing tools →