Skip to content
Dev Utilities

Case converter

Convert between camel, snake, kebab, pascal and title case

0 chars
0 chars

How words are found

  • Anything that is not a letter or a digit separates words, so spaces, _, -, . and / all work as input.
  • A lowercase-to-uppercase change is a boundary: parseData parse · Data.
  • In a run of capitals the boundary falls before the last capital when a lowercase letter follows it, which is what keeps acronyms whole: HTTPServer HTTP · Server and parseJSONData parse · JSON · Data. Use Show tokens to check any name.
  • Digits are their own word, so utf8Data becomes utf_8_data. Nothing in the string says whether 8 belongs to utf.
  • Acronyms are normalised for camel and Pascal (HTTPServer httpServer), following the Go, Java and TypeScript style guides. Title case uses a short list of minor words and house styles differ, so check the result.