Forgly

snake_case to kebab-case Converter

Convert snake_case to kebab-case.

Try an example:

Converting snake_case to kebab-case

Both styles join lowercase words, but snake_case uses underscores and kebab-case uses hyphens. This simply swaps the separator.

How to convert snake_case to kebab-case by hand

  1. Split the string at each underscore.
  2. Keep every word lowercase.
  3. Join the words with hyphens.

Worked example

snake_case_textsnake-case-text

More converters

Frequently asked questions

How do I convert snake_case to kebab-case?

Split the string at each underscore. Keep every word lowercase. Join the words with hyphens. Or just use the converter on this page — it does it instantly. Example: snake_case_text becomes snake-case-text.

What is snake_case_text in kebab-case?

snake_case_text converts to snake-case-text.

Is this converter free and private?

Yes — it is free and unlimited, and the conversion runs entirely in your browser, so nothing is uploaded to a server.