Skip to content
snip tools

Case converter

Convert text between camelCase, snake_case, Title Case and more — all at once, in your browser.

Runs 100% in your browser

How to convert text case

  1. Type or paste text. Enter the text or identifier you want to recase.
  2. Pick a case. Every case is generated live; click Copy on the one you need.

About text cases

Naming conventions differ across languages and contexts — camelCase for JS variables, snake_case for Python and SQL, kebab-case for URLs and CSS, CONSTANT_CASE for env vars, Title Case for headings. Converting between them by hand is error-prone; this tool normalises any input into words and re-emits every common case at once.

Case quick reference

Each style applied to my variable name:

  • camelCasemyVariableName — JavaScript and Java variables, JSON keys.
  • PascalCaseMyVariableName — class and component names, type names.
  • snake_casemy_variable_name — Python, Ruby and SQL identifiers.
  • kebab-casemy-variable-name — URLs, CSS classes, file names.
  • CONSTANT_CASEMY_VARIABLE_NAME — environment variables and constants.

How word boundaries are detected

To recase an identifier the tool first has to break it into words. It does that two ways at once: it splits on separators (spaces, hyphens, underscores and dots), and it inserts a break at every lowercase-to-uppercase transition — the “hump” in camelCase. So myVariableName, my-variable-name and my variable name all resolve to the same three words and convert identically.

One limitation worth knowing: a run of consecutive capitals is not split, because there's no lowercase letter to mark the boundary. An acronym-heavy name like HTMLParser is read as a single word, so it lowercases to htmlparser rather than html_parser. If you need acronyms treated as separate words, add a space or hyphen yourself (HTML Parser) before converting. Accented and non-Latin letters are preserved throughout — only the casing and separators change.

Picking a convention

The right case is usually dictated by the surrounding code or platform, not personal taste: match what the file already uses. As a rough guide, most languages reserve PascalCase for types and classes and a lower-first style (camelCase or snake_case) for variables and functions; URLs and CSS class names lean on kebab-case because they're case-insensitive and hyphens read cleanly; and CONSTANT_CASE flags a value that never changes. Generating an identifier for a slug or filename? The lorem ipsum generator pairs well for placeholder content, and the word counter helps when a name has a length budget.

Frequently asked questions

Which cases are supported?
lowercase, UPPERCASE, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and dot.case — all generated at once from your input.
How are word boundaries detected?
It splits on spaces, hyphens, underscores and camelCase humps, so "myVariableName", "my-variable-name" and "my variable name" all convert consistently.
Does it handle Unicode?
Yes — accented and non-Latin letters are preserved; only the casing and separators change.
Is my text uploaded?
No — conversion runs entirely in your browser.