ICO to PNG Converter API - extract largest or all embedded icon sizes with transparency
ico_to_pngConvert Windows and favicon .ico files to crisp transparent PNG images. Automatically detects all embedded icon resolutions (16x16, 32x32, 48x48, 64x64, 128x128, 256x256), extracts either the largest sharpest frame or every embedded frame, optionally resizes (16-2048 px) or flattens onto a solid hex background. 0 AI, local Pillow, deterministic, nothing stored. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.002/call via x402 at https://radarbg.com/x402/ico-to-png.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "largest",
"fileContent": "AAABAAMAEBAAAAAAIABWAAAANgAAACAgAAAAACAAbgAAAIwAAABAQAAAAAAgANMAAAD6AAAAiVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAHUlEQVR4nGPkW/ryPwMFgIkSzaMGjBowasBgMgAA00cCu/YdJAEAAAAASUVORK5CYIKJUE5HDQoaCgAAAA1JSERSAAAAIAAAACAIBgAAAHN6evQAAAA1SURBVHic7c5BAQAwCMSwYwLm38DEoWLI4JMaaOq+/lnsbM4BAAAAAAAAAAAAAAAAAACSZAASBQLbdxYPJAAAAABJRU5ErkJggolQTkcNChoKAAAADUlIRFIAAABAAAAAQAgGAAAAqmlx3gAAAJpJREFUeJzt0EERwCAAwDBAAP4NIA4VQ0YeaxT0Ove53/ixpQO0BugArQE6QGuADtAaoAO0BugArQE6QGuADtAaoAO0BugArQE6QGuADtAaoAO0BugArQE6QGuADtAaoAO0BugArQE6QGuADtAaoAO0BugArQE6QGuADtAaoAO0BugArQE6QGuADtAaoAO0BugArQE6QGuADtAeuaoDG21znIAAAAAASUVORK5CYII="
},
"name": "ico_to_png"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Extract the largest embedded frame or all embedded icon sizes | largest |
| size | No | Optional output width/height in pixels (Lanczos resize) | |
| background | No | 'transparent' (default) or a hex colour like '#ffffff' | transparent |
| fileContent | Yes | Base64-encoded .ico file (max 10 MB) |