English Letter Case Conversion

Features

An online English letter case conversion tool, the functions include: first letter capitalization, all uppercase, all lowercase, URL conversion and camel case conversion.

  • Capitalize the first letter: suitable for title generation when writing English articles
  • all caps
  • all lowercase
  • URL conversion: all lowercase with a dash separator, suitable for generating URL links of articles
  • CamelCase: Capitalize the first letter and remove spaces, suitable for variable names, class names, etc. in generated program code. Can increase code readability

For example, if you need to convert all uppercase letters in the text to lowercase, you can select the “All lowercase” option and the tool will automatically convert all letters to lowercase. Conversely, if you want to capitalize the first letter of each word in the text, you can select the “Capitalize” option and the tool will do the rest automatically.

Accomplish

js replaces the spaces in the string with -: You can use the string method replace() in JavaScript and regular expressions to replace the spaces in the string with -:

let str = "hello world";
str = str.replace(/\s+/g, "-");
console.log(str); // output "hello-world"
Language:
CopyRight © sunzhongwei.com