Converts text characters into their corresponding ASCII code values. Access via MCP in Cursor or Windsurf, or REST API at `/v1/encode/ascii/encode`. Input "Hello" returns `[72, 65, 108, 108, 111]`. Essential for protocol implementations, data serialization, and debugging character encoding issues in AI-assisted development workflows.
curl "https://tinyfn.io/v1/encode/ascii/encode" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/encode/ascii/encode', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/encode/ascii/encode',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's encoding tools:
{
"mcpServers": {
"tinyfn-encoding": {
"url": "https://tinyfn.io/mcp/encoding",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Send your text to the endpoint and receive an array of ASCII decimal values. For example, 'ABC' returns [65, 66, 67].
Non-ASCII characters (Unicode > 127) will either return their Unicode code point or cause an error, depending on implementation. Stick to basic ASCII (0-127) for reliable results.
Yes, it's perfect for diagnosing character encoding issues. AI agents in Cursor or Cline can quickly check if strings contain unexpected characters by examining their ASCII values.
ASCII encoding returns numeric character codes (65 for 'A'), while Base64 transforms binary data into ASCII-safe text. They serve completely different purposes.
Yes, all ASCII characters including spaces (32), newlines (10), tabs (9), and punctuation get their proper ASCII codes.
Get your free API key and start using Ascii Encode in seconds.
Get Free API Key