📋 Case Alternator
Convert your text to alternating case by automatically switching between lowercase and uppercase letters. Each character alternates between lower and upper case for a unique text transformation effect.
- 1st character: lowercase
- 2nd character: UPPERCASE
- 3rd character: lowercase
- 4th character: UPPERCASE
- And so on...
📝 Examples:
- Create unique text styling for creative writing or social media
- Test text processing systems that handle mixed case
- Generate variation text for copywriting experiments
- Create memorable or eye-catching text patterns
- Verify case sensitivity handling in applications
How the pattern is worked out
The rule is position, not letter. The tool walks the text one character at a time and lets the index decide the case, with the very first character counting as position 0:
for i = 0 .. text.length - 1
out += (i is even) ? lower(text[i]) : upper(text[i])
"hello world" comes out as hElLo WoRlD. Spaces, digits and punctuation take a position of their own even though upper-casing them changes nothing, which is why the pattern does not restart at each word. Type "case alternator" and the second word begins with a capital: cAsE AlTeRnAtOr. Whether a word starts high or low depends entirely on how many characters came before it.
What to watch for
- The output is live and selectable. It rewrites on every keystroke or paste; there is no copy button, so select the box and copy.
- Two counts are shown. "Characters" is what you typed, "Alternated" is what came out. They usually match.
- A few letters grow when upper-cased. German sharp s becomes SS, so it turns into two characters and the counts diverge - and every character after it shifts one position along the pattern.
- Emoji survive. They have no upper or lower case, but each one occupies two positions internally, so an emoji mid-sentence can flip the rest of the line.
Frequently asked questions
How do I make the mocking SpongeBob text?
Paste your sentence, and copy the alternating version out of the output box. The meme normally starts lower-case, which is what this tool does at position 0.
Why does a word start with a capital when the one before it did not?
Because the space between them is counted. The case depends on a character's position in the whole text, so a word that begins at an odd position starts upper-case. Adding or removing one character before it flips the rest.
Does alternating case change the meaning for a computer?
Usually yes. Passwords, most database comparisons and JSON keys are case-sensitive, so an alternated copy is a different string. Domain names and HTML tag names are not, so those still work.