Text to toggle

Toggled text

How does it work?

This tool toggles text between kebab-case and snake_case 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)
  • snake_case: Words in lowercase separated by underscores (e.g., hello_world)

Examples of toggling case

Original text

hello-world
hello_world
this-is-a-test
this_is_a_test
another-example
another_example

After toggling

hello_world
hello-world
this_is_a_test
this-is-a-test
another_example
another-example

This tool is particularly useful for developers who need to switch between different naming conventions used in various programming languages and frameworks.

Other tools

See other tools