Case to HeaderCase
Free and instant online tool to convert normal text, strings, or variables into HeaderCase.
Free Online HeaderCase Converter
Our string formatting tool instantly transforms your normal text, sentences, or code variables into HeaderCase. Simply paste your content, and the tool will automatically handle spaces and capitalization.
1. Paste Case text
Paste or type your Case content into the input area.
2. Conversion Process
Our tool automatically converts your text to HeaderCase format with the best possible settings.
3. Copy HeaderCase
The conversion is complete. You can now copy the result directly to your clipboard.
Frequently Asked Questions
Conversion Specs
| Input | Case |
| Output | HeaderCase |
| Safety | HTTPS / Auto-delete |
| Price | Free |
Using code
headerCase
Converts a given string into Header-Case (also known as Train-Case), where each word is capitalized and separated by hyphens. The function handles various input formats including camelCase, snake_case, and strings with arbitrary delimiters by first splitting the text into individual words, capitalizing the first letter of each word, lowercasing the rest, and then joining them with hyphens.
Parameters
| Name | Type | Description |
|---|---|---|
| text | string | The text to convert. |
Returns
stringThe header cased string.