Case Converter

Converter

Convert text between camelCase, snake_case, kebab-case, PascalCase and CONSTANT_CASE instantly. Switch naming styles for code, configs and identifiers.

Text
12 Formats
case-converter.format.lowerhello world example_text
case-converter.format.UPPERHELLO WORLD EXAMPLE_TEXT
case-converter.format.TitleHello World Example Text
case-converter.format.SentenceHello world example text
case-converter.format.camelCasehelloWorldExampleText
case-converter.format.PascalCaseHelloWorldExampleText
case-converter.format.snake_casehello_world_example_text
case-converter.format.kebab-casehello-world-example-text
case-converter.format.CONSTANTHELLO_WORLD_EXAMPLE_TEXT
case-converter.format.Train-CaseHello-World-Example-Text
case-converter.format.dotCasehello.world.example.text
case-converter.format.pathCasehello/world/example/text

About Case Converter

Coding, naming variables, and tidying headings often means flipping text between camelCase, snake_case, kebab-case, PascalCase, UPPER, lower, and Title Case again and again — slow and error-prone by hand. This tool detects word boundaries and recasts text into whichever style you need, all locally in your browser. Nothing is sent over the network, so pasting internal field names is perfectly safe. Tip: Bookmark this tool for quick access whenever you need format conversion. All processing happens locally in your browser — no data upload, so feel free to paste sensitive content.

How to Use

  1. Open the Case Converter tool page
  2. Enter or paste your data into the input area
  3. View the real-time results and use the copy button to get the output

Use Cases

  • Rename variables — Convert backend snake_case fields into the camelCase your frontend expects.
  • Make constants — Turn a phrase into SCREAMING_SNAKE_CASE for an enum or env var name.
  • URL slugs — Convert an article title into a kebab-case, SEO-friendly route slug.
  • Heading style — Apply Title Case or sentence case to unify docs and button copy.
  • Class names — Turn a component description into PascalCase per React/class conventions.
  • API field mapping — Transform JSON response keys between snake_case (backend) and camelCase (frontend) in bulk for API client code.
  • Database column naming — Convert database column names into consistent naming conventions across different ORM schemas and migration files.

FAQ

How does it find word boundaries?

It treats spaces, underscores, hyphens, and camel-case case transitions (like fooBar) all as separators, then recombines for the target style, so mixed input splits correctly.

Are digits treated as part of a word?

They stay attached to the adjacent word. user2Name to snake_case yields user2_name; digits are not split off, matching most code styles.

What about runs of capitals like HTTPURL?

Consecutive capitals are treated as one token; camelCase may output httpurl, so verify acronyms after converting.

Can it batch-convert multiple lines?

Yes, it processes line by line, each treated as its own piece of text — handy for tidying a column of field names at once.

I just want all upper/lower case.

Pick the UPPER or lower mode; it changes only letter case and leaves word separators untouched.

Any browser compatibility requirements?

This tool works in all modern browsers (Chrome, Firefox, Edge, Safari). No plugins or extensions required.

Can I use it offline?

After initial load, most features work offline. The core logic runs entirely in your browser with no network dependency.

Advertisement

Comments

No comments yet. Be the first!

Comments are stored locally in your browser. Configure Giscus for cloud-based comments.