Reference · 3 min read

Random capitalization generator

A random capitalization generator randomly assigns upper or lower case to each letter in a string, instead of picking new letters. Paste your text into the box below and press the button to see it in "sPoNgEbOb case."

Random capitalization vs. random letters

If you want new, randomly chosen letters, that's our random letter generator — it draws letters A–Z with upper, lower, or mixed case as a display option. If instead you already have text and want its existing letters randomly capitalized (the "sPoNgEbOb case" or "mOcKiNg" text style), that's what the tool above does — character by character, on the text you already have.

Mixed case in our generator

Our letter generator includes an upper / lower / mixed case setting for the letters it generates — mixed case randomly decides the casing of each freshly generated letter, which covers most classroom and game needs where case just needs to look varied rather than transform a specific word.

Common uses for randomized capitalization

  • Sarcasm or "mocking" text formatting for social posts
  • Testing how software or forms handle mixed-case input
  • Making a printed worksheet visually varied instead of uniform block capitals

For developers

If you're building random capitalization into your own project, the logic is a small extension of a random letter picker — for each character, flip a coin to decide upper or lower case. Our Python guide and Java guide cover the underlying random-selection logic you'd extend to add this.

Frequently asked questions

Does this work on a full sentence, not just one word?

Yes — paste as much text as you want into the box, spaces and punctuation included. Only the letters get randomized case; everything else stays exactly where it is.

Is the result the same every time for the same text?

No. Every press re-rolls the case for each letter independently, so running it again on the same text gives a different random pattern each time.