浏览工具

Loading…

Guide

How to use this tool, examples, and related tips.

How to Use the Case Converter

Paste your text into the input field.

Select the target case format — camelCase, PascalCase, snake_case, kebab-case, SCREAMING_SNAKE_CASE, or others.

Copy the converted output for use in your code, config, or content.

What Is Case Conversion?

Different programming languages, frameworks, and style guides use different conventions for naming variables, functions, classes, and identifiers. Case conversion transforms a string from one naming convention to another — for example, converting a human-readable label like "user profile image" into userProfileImage for JavaScript, user_profile_image for Python, UserProfileImage for a C# class, or user-profile-image for a CSS class or URL slug. Doing this manually is error-prone and tedious at scale; a case converter handles it instantly and consistently.

When to Use This Tool

Renaming variables across languages — Convert identifiers when porting code between languages with different naming conventions.

Generating code from specs or designs — Convert human-readable field names from a spec doc or Figma file into the correct case for your codebase.

Preparing API field names — APIs often use snake_case for JSON keys while frontend code uses camelCase — convert between them as needed.

Writing config files — Environment variable names typically use SCREAMING_SNAKE_CASE; convert from a readable name in one step.

Related Tools

  • Slug generator
  • Whitespace remover
  • Word counter
  • Lorem ipsum generator
  • Line sorter

FAQ

Answers about this tool and how your data is handled.

What case formats does this tool support?

camelCase, PascalCase (UpperCamelCase), snake_case, kebab-case (hyphen-case), SCREAMING_SNAKE_CASE, Title Case, and UPPERCASE / lowercase. Check the tool for the full list.

How does the tool handle spaces and special characters in the input?

Word boundaries are detected from spaces, existing case changes (camelCase), hyphens, and underscores. Special characters are typically stripped.

Can I use this for non-code content like titles or headings?

Yes. Title Case is useful for headings, and the tool works on any text — not just identifiers.

Does this tool send my data to a server?

No. Conversion runs entirely in your browser. Nothing is uploaded.

Is kebab-case the same as slug format?

Similar but not identical. Slugs are kebab-case strings that are also lowercased and stripped of special characters for use in URLs. For URL-ready slugs, use the slug generator.

优先同类别,再显示其他实用工具。