Analyzes text to return frequency counts for every character present. Access via MCP in Cursor or Windsurf, or call GET /v1/string/count-all-chars directly. Returns JSON mapping each character to its occurrence count — useful for cryptographic analysis, data validation, or text processing workflows. Handles Unicode characters and whitespace accurately.
curl "https://tinyfn.io/v1/string/count-all-chars" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/string/count-all-chars', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/string/count-all-chars',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's string tools:
{
"mcpServers": {
"tinyfn-string": {
"url": "https://tinyfn.io/mcp/string",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Use the count-all-chars tool in any MCP-compatible editor like Cursor or Cline. Pass your text string and get back a JSON object with each character mapped to its count.
Returns JSON object where keys are individual characters and values are their occurrence counts. Example: {"a": 3, "b": 1, " ": 2} for "aaa b".
Yes, it accurately counts all Unicode characters including emojis, accented letters, and whitespace characters like spaces, tabs, and newlines.
Absolutely. Character frequency analysis is essential for cipher breaking, text classification, and statistical analysis. The deterministic output makes it reliable for security applications.
This tool counts every unique character individually, not just letters or words. It's more comprehensive than basic word counting and handles edge cases consistently.
Get your free API key and start using Count All Chars in seconds.
Get Free API Key