Case Converter

Convert text between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE, dot.case, Title Case and more. All 13 formats update live as you type.

Convert any text into 13 naming conventions at once. Paste a variable name, a heading or a whole sentence. The converter splits it into words no matter how it was originally written, then rebuilds it in every common style.

Naming conventions and where they belong

How the split works

Before anything can be reformatted, the input has to be broken into words. This tool inserts a boundary wherever a lowercase letter is followed by an uppercase one, wherever an acronym ends and a new word begins (so HTTPServer becomes HTTP + Server), and at every run of non-alphanumeric characters. The result is a neutral word list that can be rejoined in any style, which means you can paste snake_case and get correct camelCase out without a round trip.

The main conventions

  • camelCase — JavaScript and Java variables, JSON keys in most web APIs.
  • PascalCase — class and type names in C#, Java, TypeScript; React component names.
  • snake_case — Python and Ruby variables and functions, PostgreSQL column names.
  • CONSTANT_CASE — compile-time constants and environment variables in nearly every language.
  • kebab-case — URL slugs, CSS class names, HTML attributes, npm package names.
  • dot.case — configuration keys, i18n translation keys, Java package names.
  • Title Case — headings and UI labels.

Why consistency matters

Mixed conventions inside one codebase cost real time. A user_id in the database, userId in the API layer and UserID in the model means every boundary needs a mapping, and every mapping is somewhere a bug can hide. Most teams pick one convention per layer and convert explicitly at the edges.

Unicode handling

Word splitting uses Unicode-aware character classes, so accented Latin, Greek and Cyrillic letters are treated as letters rather than separators. Scripts without case, such as Chinese and Japanese, pass through unchanged since there is no upper or lower form to apply.

Open-source notice: word splitting and formatting are implemented with native JavaScript Unicode regular expressions. No third-party library is used.

FAQs

Can I paste text that is already in camelCase?
Yes. The splitter detects camel humps and acronym boundaries, so any input style converts correctly into any output style without an intermediate step.
How are acronyms handled?
A run of capitals followed by a capital-plus-lowercase is split before the last capital, so 'parseHTTPResponse' becomes parse + HTTP + Response rather than one long token.
What is the difference between Title Case and Sentence case?
Title Case capitalises every word. Sentence case capitalises only the first word and lowercases the rest, the way an ordinary sentence is written.
Does it work with Chinese or Japanese text?
Those scripts have no letter case, so the characters pass through unchanged. Separator-based formats such as kebab-case will still insert delimiters at spaces and punctuation.
Are punctuation and numbers preserved?
Numbers are kept and treated as part of a word. Punctuation acts as a word boundary and is dropped from the joined output, since none of the target conventions allow it.
Is my text uploaded anywhere?
No. Everything runs in the browser, so nothing you paste leaves your machine.