Skip to content
I Hate Online Tools

Case converter

Upper, lower, title, camel, snake, and kebab case.

This runs in your browser. Nothing is uploaded.

About Case converter

Converts text to upper, lower, title, camel, snake, or kebab case in your browser, so a rename never has to be pasted into a converter site.

Renaming a variable, a CSS class, or a filename should not require a website. It also should not require me to remember whether this codebase wanted camelCase or snake_case at 11pm. Six modes cover the cases I actually type: upper, lower, title, camel, snake, kebab.

Camel, snake, and kebab split on existing case changes and on non-alphanumeric characters, so 'XMLHttpRequest' and 'already_snake' both become a word list before they are rejoined. Title Case uses a blunt rule — first letter of each word — not a publishing house's list of small words to leave alone. If you are typesetting a headline for print, this will not replace a copy editor.

The conversion is live. Pick a mode, paste, copy. I did not add 'screaming snake' as a seventh button because uppercase plus snake is two clicks and I would rather not grow a museum of case styles that exist so a page can rank for them.

How to use Case converter

  1. 1Paste the text you want renamed.
  2. 2Choose a case from the list. The result updates immediately.
  3. 3Copy the converted string.

What it won't do

  • No locale-aware Turkish i rules.
  • No 'sentence case' that tries to detect proper nouns.

Common questions

How does the case converter split words for camelCase?

It breaks on transitions from lowercase-or-digit to uppercase, and on any run of characters that are not letters or digits. The first word is lowercased; the rest are capitalised. Acronyms in the source can still come out looking odd — XMLHTTPRequest was never going to be pretty.

Is Title Case here the same as AP or Chicago title case?

No. Every word gets a capital letter. Short words like 'of' and 'and' are not left small. That is a programming rename helper, not a style-guide implementation.

Will the case converter change punctuation and spaces?

Upper, lower, and title keep punctuation in place. Camel, snake, and kebab throw away the separators and rebuild from the word list, so punctuation does not survive those three modes.

Related tools

Why this one doesn't upload your file

There is no server to upload to. This page is a static file, and the work happens in your browser using the same graphics and WebAssembly code that renders every other site you visit. Your file is read from disk into memory, processed, and handed back as a download. Once the page has loaded you can disconnect from the network entirely and it keeps working. The longer explanation

Install the app