Case Converter
Switch text between camelCase, snake_case, kebab-case and more.
- camelCase
- PascalCase
- snake_case
- kebab-case
- CONSTANT_CASE
- dot.case
- path/case
- Title Case
- Sentence case
- UPPER CASE
- lower case
How to use the case converter
- Type or paste text into the box. Every case style below updates as you type.
- To convert a list, such as column names or variable names, put one item per line. Each line is converted on its own and the line breaks are kept.
- Press Copy next to the style you need.
Example
The input XMLHttpRequest handler is split into the words xml, http,request and handler. It becomes xmlHttpRequestHandler in camelCase,XmlHttpRequestHandler in PascalCase, xml_http_request_handler in snake_case,xml-http-request-handler in kebab-case, XML_HTTP_REQUEST_HANDLER in CONSTANT_CASE andXml Http Request Handler in Title Case.
Frequently asked questions
How are words detected?
Spaces, hyphens, underscores, dots, slashes and other punctuation separate words, and so do camelCase boundaries. A run of capitals is treated as an acronym, so getHTTPResponse becomes get,http, response. Digits stay with the word before them, so base64Encode becomesbase64_encode rather than base_64_encode.
Why do UPPER and lower case keep my punctuation?
UPPER CASE and lower case only change the letters, so spacing and punctuation stay exactly as typed. The other styles rebuild the text from its words, which drops punctuation by design.
Is my text stored?
No. The conversion runs in your browser and the text is never sent to a server.