Text

Case to AlternatingCase

Free and instant online tool to convert normal text, strings, or variables into AlternatingCase.

Input Text
alternating-case Result
100% Secure
Fast Conversion
High Accuracy

Free Online AlternatingCase Converter

Our string formatting tool instantly transforms your normal text, sentences, or code variables into AlternatingCase. Simply paste your content, and the tool will automatically handle spaces and capitalization.

How to convert

1. Paste Case text

Paste or type your Case content into the input area.

2. Conversion Process

Our tool automatically converts your text to AlternatingCase format with the best possible settings.

3. Copy AlternatingCase

The conversion is complete. You can now copy the result directly to your clipboard.

Frequently Asked Questions

Conversion Specs

InputCase
OutputAlternatingCase
SafetyHTTPS / Auto-delete
Price
Free

Using code

alternatingCase

Alternates cases based on the index of the character (ignoring spaces is optional, this implementation alternates strictly by character position).

Parameters

NameTypeDescription
textstringThe text to convert.

Returns

stringThe alternating cased string.
npm i @razomy/string-case
import {alternatingCase} from '@razomy/string-case';

alternatingCase('hello world');
// => hElLo wOrLd

alternatingCase('typescript');
// => tYpEsCrIpT