Skip to content
Text

Case converter — upper, lower, title, camel, snake and kebab

Fix a heading typed in capitals, put a title into sentence case, or turn a label into a code-style name. Choose from eleven cases and check the result before copying it.

Runs in your browser — your input is not uploaded to ToolsNow.

Input
0 chars0 words0 lines
Convert to
Result
0 chars0 words0 lines

How to use

  1. Paste the text to change. Use the heading, sentence or identifier you want to convert.
  2. Choose a case. The buttons show the format: helloWorld for camelCase, hello_world for snake_case and hello-world for kebab-case.
  3. Check names, then copy. Review names and acronyms before using Copy result. Use as input replaces the original with the result so you can apply another conversion.

Questions

Which case should I use for a heading?

Title Case gives "The Lord of the Rings", leaving listed short words such as "of" and "the" lowercase after the start. Sentence case gives "The lord of the rings". These are mechanical rules, not a house-style check: both can change names and acronyms such as NASA.

Can I convert an existing code identifier?

Yes. "parseHTMLString" becomes "parse-html-string" in kebab-case or "parse_html_string" in snake_case. Capital letters mark word boundaries, and acronym runs are split from the following word.

Does this make a valid variable name?

It changes the format, but does not check your language’s reserved words or naming rules. Spaces and punctuation become word boundaries in the code-style modes, and a name can still start with a digit. Follow the conventions of the codebase you are working in.

What is CONSTANT_CASE for?

It is commonly used for environment variables and constants. For example, "api base url" becomes API_BASE_URL. Use it when that matches the format your application expects.

Published by ToolsNow. How tools and sources are checked · Report a problem

Related tools