Consonant Replacer

Replaces every consonant letter, any letter that isn't a, e, i, o, or u, with a chosen replacement character, useful for isolating the vowel skeleton of a text, creating stylized output, or building a letter-frequency exercise. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-23

Overview

Introduction

Isolating the vowel structure of a passage by replacing every consonant is a handy way to study a text's sound skeleton, but doing it by hand is slow.

It runs entirely client-side, so nothing you paste is ever uploaded to a server.

What Is Consonant Replacer?

A consonant replacer that swaps every consonant letter, any letter that isn't a, e, i, o, or u, for a chosen replacement character.

It runs entirely client-side as part of this site's String Tools collection, so nothing you paste is ever uploaded to a server.

How Consonant Replacer Works

The tool checks every letter in the input, and any letter that doesn't match the vowel set is swapped for the replacement string, while vowels and non-letter characters pass through untouched.

The transformation happens synchronously in JavaScript the moment you type, with no network round trip involved.

When To Use Consonant Replacer

Use it to isolate the vowel pattern of a word or phrase, build a stylized or obfuscated version of text, or create a letter-frequency teaching exercise.

It's a fast way to get the answer without opening a code editor, a REPL, or writing a one-off script just to check.

Often used alongside Consonant Remover and Consonant Duplicator.

Features

Advantages

  • Supports any replacement string, not just a single character.
  • Leaves vowels, spaces, and punctuation completely untouched.

Limitations

  • Treats 'y' as a consonant in every case, since it isn't part of the five-vowel set used by this tool.

Examples

Replacing consonants with a symbol

Input

hello world

Output

*e**o *o*ld

Every consonant is replaced by '*', leaving the vowels and the space visible.

Best Practices & Notes

Best Practices

  • Use a single visually distinct character as the replacement to keep the output easy to scan.

Developer Notes

The transform is `input.replace(/[a-zA-Z]/g, (char) => (/[aeiouAEIOU]/.test(char) ? char : replacement))`, so the callback checks each matched letter against the vowel set and only substitutes when it's a consonant, leaving vowels returned as-is.

Consonant Replacer Use Cases

  • Isolating the vowel pattern of a word or phrase
  • Creating stylized or obfuscated display text
  • Building a letter-frequency or phonics teaching exercise

Common Mistakes

  • Expecting 'y' to be treated as a vowel; it's classified as a consonant here.
  • Leaving the replacement field empty, which the tool rejects.

Tips

  • Combine with the Vowel Replacer to see both halves of the letter split rendered separately.

References

Frequently Asked Questions