Character Counter

Free character counter: count total characters, unique characters, and the frequency of each character in your text. Useful for ciphers and analysis.

AI-ready Use this tool with AI

This tool has a free JSON API. Copy a prompt or skill below to use it with ChatGPT, Claude, or any AI agent — no API key needed.

API docs
Enter text above.

How character counter works

This tool analyzes text character by character. It counts the total number of characters (including spaces and punctuation), the number of unique characters, and the frequency of each individual character.

The results are sorted by frequency, with the most common characters first. Each entry shows the character and how many times it appears. This is useful for cryptography (frequency analysis), text compression analysis, and language studies.

All analysis happens in your browser. Your text is never uploaded, so it is safe for sensitive content.

Frequently asked questions

What is character frequency analysis?
Character frequency analysis counts how often each character appears in text. It is used in cryptography to break simple substitution ciphers and in linguistics to study language patterns.
Does the count include spaces?
Yes. The total character count includes every character in the text, including spaces, punctuation, and newlines. The frequency breakdown shows each character separately.
Is my text sent to a server?
No. All counting happens in your browser. Your text is never uploaded or stored, so it is safe for sensitive content.
How are the results sorted?
Characters are sorted by frequency in descending order, so the most common character appears first. Characters with the same frequency appear in the order they were first encountered.