Codegrain

Case converter — camelCase, snake_case, kebab-case, free

Convert text to UPPERCASE, lowercase, Title Case, camelCase, snake_case, kebab-case and CONSTANT_CASE. Smart tokenizer splits any notation, in your browser.

Convert to0 words · 0 chars
Text
Code

Programmer notations (camelCase, snake_case, …) are built per line. Word cases (UPPERCASE, Title Case, …) keep your line breaks and spacing.

0 chars
0 chars
Conversion runs in your browser. Nothing is uploaded.
Frequently asked questions

Frequently asked questions

Is my text sent to a server?

No. The conversion runs entirely in your browser with JavaScript — your text never leaves your device and nothing is uploaded. That matters when you're reformatting names, identifiers or content you'd rather not paste into a site that logs it.

Which cases and notations are supported?

UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE (UPPER_SNAKE), dot.case and path/case. Word cases (upper, lower, title, sentence) keep your line breaks and punctuation; programmer notations are rebuilt from words, one identifier per line.

How does it split words from camelCase or snake_case input?

A smart tokenizer detects word boundaries from any notation: separators (spaces, _, -, ., /), camelCase transitions (fooBar → foo, Bar), runs of capitals (XMLHttpRequest → XML, Http, Request; parseURLToken → parse, URL, Token) and digits (item2Name → item, 2, Name). So you can round-trip freely, e.g. helloWorld → hello_world → helloWorld.

Related tools