Copy

Case & Naming Format Converter

Batch convert camel, pascal, snake, kebab cases and custom separators

Text Case & Naming Format Converter

An online text formatting tool for development and office scenarios, supports real-time conversion of multi-line text, compatible with mainstream code naming standards and letter case formats. It supports step-by-step custom configuration and one-click quick conversion, automatically retains the original line break layout, runs locally in the browser, and data will not be uploaded for higher security.

One-Click Quick Presets (Generate standard naming with one click)

No step-by-step configuration required, select to generate standardized naming directly, suitable for front-end, back-end, database, routing and other development scenarios:

  • camelCase: Standard variable naming for JS & Java, example: helloWorldTest
  • PascalCase: Naming for classes and types, example: HelloWorldTest
  • snake_case: Python variables and database fields, example: hello_world_test
  • CONSTANT_CASE: Global constant definition, example: HELLO_WORLD_TEST
  • kebab-case: CSS class names and URL routing addresses, example: hello-world-test
  • dot.case: Configuration fields and path identifiers, example: hello.world.test
  • path/case: File paths and hierarchical identifiers, example: hello/world/test
  • Train-Case: Hyphen format dedicated to titles, example: Hello-World-Test

Custom Step-by-Step Conversion (Flexibly combine formats in detail)

After turning off quick presets, you can freely match letter case styles and space replacement rules in two steps to flexibly meet personalized formatting needs.

Letter Case Transformation

  • Original: Keep the original uppercase and lowercase letters unchanged
  • All Lowercase, All Uppercase: Unify letter case for the whole text with one click
  • Sentence Case: Capitalize the first letter of the whole paragraph, lowercase for the rest
  • Title Case: Capitalize the first letter of each word and retain spaces between words
  • Alternating Case starting with lowercase, Alternating Case starting with uppercase: Alternate case character by character to generate text with special styles

Space Replacement Rules

  • Keep Original Spaces: Do not modify separating spaces between words
  • Remove All Spaces: Delete all space characters between words
  • Replace spaces with dash, underscore, dot, slash: Batch replace word separators while completely retaining the previous letter case results without forced lowercase
  • Custom Separator: After selection, freely input any single or multi-character symbols as word separators (such as ->, ::, #, etc.)

Auxiliary Preprocessing Function

Equipped with a toggle for "Merge consecutive spaces into a single space". When enabled, it only compresses redundant spaces in the same line without breaking line breaks, making it easier to clean up messy formatted text; it comes with buttons to clear input and copy results with one click, delivering neat copied content and efficient operations.

Applicable Scenarios

Programmers can batch standardize variable names, database field names, front-end CSS and routing specifications; copywriters can batch adjust title capitalization and English paragraph formatting; batch organize multi-line file names and configuration text. Get rid of tedious manual modification and greatly improve text formatting efficiency.

You May Also Need