Anagram Solver

Check whether two words or phrases are true anagrams using letters only, then optionally generate all unique permutations for a short word. Everything runs locally in your browser, so the page is fast, private, and easy to use for puzzle work, classroom examples, and quick word-game checks.

Introduction

An anagram is a rearrangement of letters. If two words or phrases use exactly the same letters in exactly the same quantities, they are anagrams. This calculator helps with that check in a practical way. Instead of asking you to sort letters by hand or count them one by one, it cleans the text, counts each letter, and shows whether the two inputs match. That makes it useful for classic examples such as listen and silent, but it is just as helpful for longer phrase anagrams where a single missing letter can be hard to spot.

The page also includes a second tool: a permutation generator for short words. A permutation is any possible rearrangement of the letters in a word. If you enter a short input of up to six letters, the page can list every unique arrangement. This is handy when you want to brainstorm possibilities for a word jumble, inspect how repeated letters affect the total number of arrangements, or simply explore how quickly the number of possible outputs grows.

Both features use the same basic cleaning rule. The script converts text to lowercase and keeps only the letters a through z. Spaces, punctuation, and numbers are ignored. That means you can paste phrases naturally instead of editing them first. For example, Eleven plus two! and Twelve plus one. can be entered exactly as written. The checker strips away the punctuation and compares only the letters that remain.

Privacy note: your text is processed in the browser. There is no upload step in the page’s JavaScript, so the calculator behaves like a local utility rather than a remote text-analysis service.

How to use

Start with the anagram checker if you want a yes-or-no answer about two inputs. Type or paste the first word or phrase into the first box and the second word or phrase into the second box. Then press Check Anagram. The result area will tell you whether the cleaned inputs are anagrams, and it will also print a compact letter-count summary for each side. Those count lines are especially useful when the answer is no, because they show where the mismatch comes from.

Use the permutation section when you want to see every unique rearrangement of a short word. Enter one word of six letters or fewer and press Generate. The page will list each unique permutation on its own line. If the word contains repeated letters, duplicate arrangements are removed automatically. This keeps the output focused on distinct results rather than repeated copies of the same arrangement.

In plain language, the workflow is simple: compare two inputs when you want to verify an anagram, and use one input when you want to explore all possible letter orders. The two tools are related, but they answer different questions. The checker asks, “Do these two texts use the same letters?” The generator asks, “What are all the different ways these letters can be arranged?”

Use the anagram checker and permutation generator

Enter your text below. The checker ignores spaces, punctuation, and case, while the permutation generator accepts one cleaned word up to six letters long. Results appear immediately on the page.

Formula and logic

The anagram check is based on letter frequency, not on dictionary meaning. After cleaning the text, the script counts how many times each letter appears. Two cleaned inputs are anagrams when they have the same total length and the same count for every letter. You can think of this as comparing two letter inventories. If one side has an extra e or one fewer t, the inventories do not match, so the phrases are not anagrams.

For the permutation feature, the key idea is factorial growth. If a word has n distinct letters, the number of possible arrangements is n factorial, written as n!. That means 3 letters give 6 arrangements, 4 letters give 24, 5 letters give 120, and 6 letters give 720. Because this grows so quickly, the page limits full listing to six letters or fewer.

When letters repeat, the number of unique permutations is smaller than n! because swapping identical letters does not create a new visible arrangement. The standard counting formula is shown below.

Unique permutations = n ! m1! × m2! × × mk!

Here, n is the total number of letters, and each m value is the count of one repeated letter. For example, the word noon has four letters with two ns and two os, so the unique count is 4! / (2! × 2!) = 6. The generator in this page uses recursion and a Set to produce the actual list while automatically removing duplicates.

Example

Suppose you want to test the classic pair Listen and Silent. After cleaning, the page compares listen with silent. Each string has six letters, and each letter appears exactly once. Because the counts match, the result is an anagram match. The output confirms this and prints the same letter-count summary for both inputs.

Now consider a phrase example: Astronomer and Moon starer. The space in the second phrase is ignored, so the checker compares only letters. Again, the letter inventory matches, so the result is positive. This is where the tool is especially helpful, because phrase anagrams are much harder to verify by eye than short single words.

For permutations, try the word earth. It has five distinct letters, so the total number of arrangements is 5! = 120. When you click Generate, the page lists all 120 unique permutations. If you instead enter noon, the output is much shorter because repeated letters reduce the number of distinct arrangements.

Limitations and assumptions

This calculator uses a deliberately simple definition of an anagram. It keeps only the letters a through z and removes everything else. That means accented characters and non-Latin scripts are not preserved in a language-aware way. For example, café becomes caf under the current cleaning rule. If you need accent-sensitive or multilingual matching, the normalization step would need to be changed.

The permutation generator is intentionally capped at six letters. That is not a mathematical limit; it is a usability and performance limit. Listing every arrangement for longer words quickly becomes slow and visually overwhelming. Even when the browser can compute the result, a huge wall of output is rarely useful. For longer inputs, it is usually better to compute the count with the formula rather than print every arrangement.

Another important assumption is that the page does not check whether a permutation is a valid dictionary word. It simply rearranges letters. That makes the tool good for verification and brainstorming, but not a full word-game solver with vocabulary filtering, clue matching, or pattern constraints.

Frequently asked questions

Does it work with phrases like “Astronomer” and “Moon starer”?

Yes. The checker removes spaces and punctuation before comparing letters, so Astronomer and Moon starer match as anagrams. If you add or remove a letter, even by accident, the match will fail and the letter-count lines will show the difference.

Why does the result show letter counts?

The counts are a quick diagnostic. If two phrases are not anagrams, you can often spot the mismatch immediately. For example, if one phrase contains e:3 and the other contains e:2, you know exactly what to fix. This is especially helpful for long phrases where visual comparison is error-prone.

Why is permutation generation limited to 6 letters?

Because the output size grows factorially. Even 8 distinct letters would produce 8! = 40,320 lines. That is slow to compute, heavy to render, and not very readable on a typical screen. The 6-letter cap keeps the worst case to 6! = 720 lines, which is manageable.

Are two phrases anagrams if they share most letters but not all?

Not under this definition. An anagram requires the same letters with the same frequencies. If you want a near-match tool, you can still use this page as a rough aid by comparing the two count lines to see which letters are extra or missing.

Can I use this for Wordle, Scrabble, or crosswords?

You can use it as a helper for rearranging letters, but it does not validate words against a dictionary. For Wordle-style constraints such as known positions, excluded letters, or pattern matching, you would need a different solver. For Scrabble or crosswords, the permutation list can still be useful as a brainstorming step.

What about very long text?

The anagram check is based on counting letters, which is efficient for typical phrases and sentences. Very large blocks of text may still take noticeable time in the browser, and the letter-count output can become long. If you are comparing long passages, it is usually better to trim to the relevant section first.

If you enjoy this kind of word analysis, the next useful tools are usually a letter-frequency analyzer, a word counter, or a pattern-based word finder. Those tools answer different questions, but they pair well with an anagram checker. One tells you how often letters appear, another tells you how much text you have, and another helps you search for words that fit a pattern. This page focuses on the narrower but very practical question of whether two texts are letter-for-letter equivalent after cleaning.

For puzzle construction, a sensible workflow is to draft a candidate phrase, verify it here, inspect the letter counts if something is off, and only then refine the wording for style or meaning. That separates the mechanical task of letter accounting from the creative task of making the phrase elegant. In classrooms, the same workflow can help explain counting, sorting, and factorial growth in a concrete way.

In short, this calculator is most useful when you want a quick, trustworthy answer without extra clutter. It does not pretend to be a full dictionary engine. Instead, it gives you a clean anagram check, a practical permutation list for short words, and enough explanation to understand what the result means and where its limits are.

Accessibility and usage notes

The result areas use aria-live="polite" so screen readers can announce updates after you press the buttons. Labels are explicitly associated with the textareas, and the game canvas includes a readable overlay with instructions before play begins.

Reminder: the anagram check ignores everything except az. If you need a different alphabet or language-aware behavior, the cleaning step would need to be changed in the JavaScript.

Calculator inputs

Anagram check and permutation generator

Only letters az are compared. Spaces and punctuation are ignored.

Case does not matter. You can paste full phrases exactly as written.

Result will appear here.

Optional: Generate permutations

The generator lists unique permutations. Repeated letters are automatically deduplicated.

Permutation output will appear here.

Mini-game: Anagram Catch

If you want a quick break after checking phrases, try the optional mini-game below. It turns the same letter-matching idea into a fast arcade challenge. Your goal is to catch only the letters that belong to the target word and build a valid anagram before time runs out. Wrong letters cost progress, while streaks reward careful play. It is separate from the calculator, so it does not change any results above.

Target word: silent. Catch matching letters to complete an anagram of the target.

Score0
Time45
Streak0
Progress0/6

Start game

Click to play. Move the catcher with your mouse or finger, or use the arrow keys. Catch letters that belong to the target word, avoid decoys, build streaks, and finish the anagram before the timer ends.

  • Catch a needed letter: gain score and fill progress.
  • Catch a wrong letter: lose streak and a little progress.
  • Complete the target word to jump to the next round.

Fast, fair, and replayable on desktop or mobile.

Embed this calculator

Copy and paste the HTML below to add the Anagram Solver | Check Phrase Anagrams and Generate Word Permutations to your website.