Case Converter
Convert text between camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, Title Case, and more — all at once, in your browser.
Prefer the terminal? See the CLI equivalent →About the Case Converter
- camelCase, snake_case, kebab & more
- One-click copy
- Instant results
- 100% private — runs in your browser
- Free, no sign-up
Paste any text — an identifier, a variable name, or a whole phrase — and this tool converts it into every common case style at once: camelCase, PascalCase, snake_case, CONSTANT_CASE, kebab-case, Title Case, and more. Copy the one you need with a single click.
It works from any starting shape. It understands separators (spaces, underscores, hyphens, dots, slashes), camelCase and PascalCase boundaries, and acronym runs — so “XMLHttpRequest” splits correctly into the words “XML”, “Http”, and “Request” before being rejoined in the style you pick.
Everything happens in your browser; nothing is uploaded. It is the quick fix for renaming a variable to match a codebase convention, turning a title into a URL slug, or building a CONSTANT for a config key.
How to use it
- Type or paste your text into the box.
- Read the converted result for each case style in the list below.
- Optionally use the toggle buttons under the box to filter the list to just the styles you care about — with none selected, every style is shown.
- Click Copy next to the style you want.
Case styles
- camelCase
- First word lowercase, the rest capitalized, joined — common for variables in JS/Java.
- PascalCase
- Every word capitalized and joined — common for classes and types.
- snake_case
- Lowercase words joined by underscores — common in Python, Rust, SQL.
- CONSTANT_CASE
- Uppercase words joined by underscores — for constants and env vars.
- kebab-case
- Lowercase words joined by hyphens — for URLs, CSS classes, filenames.
- Title Case
- Every word capitalized, space-separated — for headings and labels.
Frequently asked questions
How does it split my text into words?+
It breaks on separators (spaces, _, -, ., /), on camelCase/PascalCase boundaries, and on acronym-to-word boundaries. For example “getHTTPResponse” becomes get, HTTP, Response, and “user_id-value” becomes user, id, value.
Does it handle acronyms like XML or HTTP?+
Yes. A run of capitals followed by a normal word is split at the right place, so “XMLHttpRequest” yields the words XML, Http, Request rather than one blob. Note that most styles then normalize capitalization (e.g. snake_case gives xml_http_request).
Can I convert a whole sentence, not just one word?+
Yes. Multi-word input works the same way — try it for slugs (kebab-case), headings (Title Case), or constants (CONSTANT_CASE).
Is my text sent anywhere?+
No. All conversion runs locally in your browser with client-side JavaScript; your text never leaves your device.
Related tools
Diff Viewer
Compare two texts or code snippets side by side with line-level difference highlighting.
Image to Text (OCR)
Extract the text from a screenshot, photo, or scanned document with OCR — in 18 languages, entirely in your browser. Nothing is uploaded.
Markdown Editor
Write Markdown with a live GitHub-flavored preview, a table of contents, and one-click export to Markdown or HTML — entirely in your browser, nothing uploaded.
Mojibake Fixer
Repair garbled text where UTF-8 was misread as Windows-1252 — turn “café” back into “café” and “’” back into “’”. Runs entirely in your browser.
Regex Railroad Diagram
Visualize a regular expression as a railroad diagram and read a plain-English, step-by-step explanation. Hover to link the two. Runs in your browser.
Regex Sample Generator
Generate example strings that match a regular expression, then send them straight into the Regex Tester. Every sample is verified to match — all in your browser.