Convert Text Between camelCase, snake_case, and More

Published 2026-05-29

Convert text between camelCase, snake_case, UPPERCASE, lowercase, Title Case, Sentence case, kebab-case, and more.

Try Case Converter free →

The problem

Every programming language and framework has its own naming convention. JavaScript uses camelCase for variables. Python prefers snake_case. CSS classes use kebab-case. Constants are SCREAMING_SNAKE_CASE. When you're moving between languages, renaming variables to match a style guide, or converting database column names to API field names, manually retyping everything in the right case is tedious and error-prone.

How it works

  1. Paste your text — a variable name, a list of identifiers, or even a full sentence.
  2. Pick the target case — camelCase, snake_case, kebab-case, PascalCase, UPPERCASE, lowercase, Title Case, or Sentence case.
  3. Copy the result — the converted text is ready to paste into your code or document.

The tool detects word boundaries intelligently — it handles spaces, underscores, hyphens, and camelCase transitions. Your data never leaves your browser.

When to use this tool

Renaming variables when porting code between languages. Converting a list of database columns from snake_case to camelCase for a JSON API. Turning a headline into a URL-friendly kebab-case slug. Reformatting constants. Cleaning up inconsistent naming in a codebase. Any time you need to switch between naming conventions without doing it character by character.

Why I built it

I switch between Python, JavaScript, and SQL constantly, and each has different naming conventions. Find-and-replace doesn't handle case conversion well, and writing a one-off script every time felt like overkill. A tool that understands word boundaries and converts between all common cases saves real time.

Tips and reference

Quick reference for which convention is used where: camelCase is standard in JavaScript, Java, and TypeScript. snake_case is the norm in Python, Ruby, and SQL. PascalCase is used for class names in most languages and for components in React. kebab-case is the convention for CSS classes, HTML attributes, and URL slugs. SCREAMING_SNAKE_CASE is used for constants in most languages. Following the right convention makes your code easier to read and keeps linters happy.


Built with vanilla HTML/JS. No frameworks, no backend, loads instantly.

Related tools

Joe — Software engineer with 20+ years of experience. Built ToolRack to provide fast, private tools without the bloat.