← back to flaviocopes.com

String case converter

← All tools

Paste one string and get every common case at once — camelCase, snake_case, kebab-case, Title Case, and more. Copy any row or grab a tiny JS snippet for the case you need.

Your text never leaves the browser — conversion runs locally.

~~~

Input

~~~

All cases

CaseOutput

Click a row to see its JS snippet below.

~~~

JS snippet

For — a starting point, not production-hardened

~~~

About this tool

Naming conventions differ by language and context: JavaScript prefers camelCase for variables, Python uses snake_case, CSS and URLs use kebab-case, and env vars are often CONSTANT_CASE. This tool splits your input on existing separators and camelCase boundaries somyHTTPProxy andmy-http_proxy both convert cleanly.

Short acronyms like HTTP orAPI are kept uppercase when already all-caps. The snippets are minimal examples — for real code, consider edge cases like consecutive capitals or locale-specific title rules.

~~~

Read more