Text to toggle

Toggled text

How does it work?

This tool toggles text between kebab-case and camelCase formats. It automatically detects the current format of each line and converts it to the other format.

  • kebab-case: Words in lowercase separated by hyphens (e.g., hello-world)
  • camelCase: Words joined together, first word lowercase, subsequent words capitalized (e.g., helloWorld)

Examples of toggling case

Original text

hello-world
helloWorld
this-is-a-test
thisIsATest
another-example
anotherExample

After toggling

helloWorld
hello-world
thisIsATest
this-is-atest
anotherExample
another-example

This tool is particularly useful for developers who need to switch between different naming conventions used in various programming languages and frameworks. For example, converting between HTML attributes (kebab-case) and JavaScript properties (camelCase).

Other tools

See other tools