Validates Base64-encoded strings to ensure proper formatting and encoding compliance. Use via MCP in Cursor or Windsurf, or call GET /v1/validate/base64 directly. Returns boolean validation status plus detailed error information for malformed strings. Handles padding requirements and character set validation according to RFC 4648 specifications.
curl "https://tinyfn.io/v1/validate/base64" \
-H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/validate/base64', {
headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests
response = requests.get('https://tinyfn.io/v1/validate/base64',
headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)
Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's validation tools:
{
"mcpServers": {
"tinyfn-validation": {
"url": "https://tinyfn.io/mcp/validation",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}
Use the MCP tool in Cursor, Windsurf, or other supported editors. The tool returns true/false validation status plus specific error details for debugging malformed encodings.
Invalid characters outside A-Z, a-z, 0-9, +, /, incorrect padding (= symbols), or length not divisible by 4 after padding removal.
Standard Base64 validation follows RFC 4648. For URL-safe variants (using - and _ instead of + and /), check if the tool accepts those character substitutions.
Yes, this performs format validation only. It checks encoding compliance without decoding to binary data, making it fast for large strings.
Returns JSON with validation boolean and error details. Useful for form validation, data pipeline checks, and API input sanitization.
Get your free API key and start using Validate Base64 in seconds.
Get Free API Key