ToolZoneX
Blog

Anagram Checker

Check whether two words or phrases are anagrams of each other by comparing their sorted letters, ignoring case, spaces, and punctuation.


How to check if two words are anagrams

Type one word or phrase into each box above. This tool ignores case, spaces, and punctuation, then compares the letters in each input — if both contain exactly the same letters (just rearranged), they are anagrams, and the result updates live as you type.

How the comparison works

Each input is lowercased, stripped of spaces and punctuation, and then its letters are sorted alphabetically. Two inputs are anagrams if and only if their sorted-letter strings are identical. For example, "listen" and "silent" both sort to "eilnst", confirming they are anagrams.

Example

"Astronomer" and "Moon starer" both normalize and sort to the same letter sequence, confirming they're anagrams — spaces and capitalization don't affect the result.

Common Use Cases

  • Verifying word puzzle or crossword anagram answers.
  • Checking anagram-based usernames, brand names, or wordplay.
  • Teaching or learning about anagrams and letter rearrangement.

FAQs

Does it ignore spaces and punctuation?

Yes — spaces, punctuation, and capitalization are all ignored, so "Dormitory" and "Dirty room" are correctly identified as anagrams despite the different spacing.

Do the two phrases need the same number of words?

No — only the letters matter. A single word can be an anagram of a multi-word phrase, as long as the combined letters match exactly.

What if one box is empty?

The result only appears once both boxes contain at least one letter, since an anagram comparison needs two things to compare.