# Favicon Generator (ICO, Apple Touch, PWA Manifest, Bulk) (`toowl/favicon-generator`) Actor

Turn a logo URL into a complete favicon set: favicon.ico (16/32/48), PNG favicons, Apple touch icon, Android/PWA icons, a maskable icon and site.webmanifest, plus the HTML tags. Square, rounded or circle, in bulk. Pay per icon set.

- **URL**: https://apify.com/toowl/favicon-generator.md
- **Developed by:** [Chalid Ade](https://apify.com/toowl) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 favicon set generated

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Favicon Generator — ICO, Apple touch icon, PWA manifest, in bulk

Give it a logo URL, get back **everything a website or PWA needs** in one ZIP: `favicon.ico`, PNG favicons, Apple touch icon, Android/PWA icons, a maskable icon, `site.webmanifest` and the HTML tags to paste. Do it for one site or for 500 client sites in one run.

### What's in each ZIP

| File | Size | Used by |
| --- | --- | --- |
| `favicon.ico` | 16, 32, 48 | Every browser, old and new |
| `favicon-16x16.png`, `favicon-32x32.png` | 16, 32 | Browser tabs |
| `apple-touch-icon.png` | 180 | iPhone / iPad home screen (always square, filled background) |
| `android-chrome-192x192.png`, `android-chrome-512x512.png` | 192, 512 | Android, PWA install |
| `maskable-512x512.png` | 512 | Android adaptive icons (logo inside the safe zone) |
| `site.webmanifest` | | PWA manifest with name, colours and icons |
| `how-to-use.html` | | The `<link>` tags to paste in your `<head>` |

### Options

- **Shape**: square, rounded square or circle
- **Fit**: contain (whole logo) or cover (fill and crop)
- **Padding** around the logo
- **Background** colour, or keep transparency
- **Theme colour** for the manifest and the iOS/maskable background
- **Bulk**: one favicon set per logo URL

### Input

```json
{
  "files": [{ "url": "https://example.com/logo.png" }],
  "appName": "My App",
  "themeColor": "#0f172a",
  "shape": "rounded",
  "paddingPercent": 8
}
```

### Output

```json
{
  "url": "https://example.com/logo.png",
  "name": "logo.png",
  "appName": "My App",
  "files": ["favicon.ico", "favicon-16x16.png", "…", "site.webmanifest"],
  "previewUrl": "https://api.apify.com/v2/key-value-stores/…/records/0001-logo-512.png",
  "zipUrl": "https://api.apify.com/v2/key-value-stores/…/records/0001-logo-favicons.zip",
  "html": "<link rel=\"icon\" href=\"/favicon.ico\" sizes=\"48x48\">…",
  "manifest": { "name": "My App", "icons": ["…"] }
}
```

### Pricing

Pay per event: one `favicon-set-generated` per logo (the whole set). Failed images are free.

### Free browser version

[toowl.my.id/en/favicon-generator](https://toowl.my.id/en/favicon-generator/) builds the same set in your browser, free, nothing uploaded. It can also make an icon from a letter or emoji.

### Call it from your code

```bash
curl -X POST "https://api.apify.com/v2/acts/toowl~favicon-generator/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"files":[{"url":"https://example.com/logo.png"}],"appName":"My App"}'
```

The same call works from Python (`apify-client`), JavaScript, Make, Zapier and n8n (Apify app/node or a plain HTTP request).

### Use it from AI agents (MCP)

Add this Actor as a tool to Claude, Cursor, VS Code or any MCP client through Apify's MCP server:

```
https://mcp.apify.com/?actors=toowl/favicon-generator
```

The agent can then pass file URLs and read the results itself.

### More toowl file APIs

Speech to text & subtitles, AI vocal remover, text to speech, AI object remover, PDF to Markdown, PDF to Word & Excel, HTML/URL to PDF, OCR, Office to PDF, PDF compressor, PDF merge/split, PDF password protect, PDF to image, image to PDF, bulk watermark, image converter and compressor, background remover, AI upscaler, image to SVG, QR code and barcode generators, QR/barcode reader, favicon generator, video compressor, frame extractor and audio converter. All pay per file, all batch-friendly: [toowl.my.id/en/api](https://toowl.my.id/en/api/).

Questions or a format that fails? Open an issue on the Actor's **Issues** tab.

# Actor input Schema

## `files` (type: `array`):

Direct links to square-ish logos (PNG, SVG, JPG, WebP). One complete favicon set per image. 512×512 or larger (or SVG) looks best.

## `appName` (type: `string`):

Name written into site.webmanifest. Defaults to the file name.

## `themeColor` (type: `string`):

6-digit hex colour for the manifest and for the Apple/maskable icon background when the logo is transparent.

## `background` (type: `string`):

Optional 6-digit hex colour behind the logo on every icon. Leave empty to keep transparency.

## `shape` (type: `string`):

Outline of the browser and Android icons. The Apple touch icon is always square (iOS rounds it).

## `fit` (type: `string`):

How a non-square logo fills the icon.

## `paddingPercent` (type: `integer`):

Empty space around the logo on each side, as a percentage of the icon size.

## `maxFileSizeMb` (type: `integer`):

Larger files are skipped with an error (not charged).

## Actor input object example

```json
{
  "files": [
    {
      "url": "https://raw.githubusercontent.com/chalidade/tools/main/public/icon-512.png"
    }
  ],
  "themeColor": "#ffffff",
  "shape": "square",
  "fit": "contain",
  "paddingPercent": 0,
  "maxFileSizeMb": 20
}
```

# Actor output Schema

## `results` (type: `string`):

One row per image with the ZIP link, file list, HTML tags and manifest.

## `summary` (type: `string`):

Counts of icon sets generated and failed.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "files": [
        {
            "url": "https://raw.githubusercontent.com/chalidade/tools/main/public/icon-512.png"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("toowl/favicon-generator").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "files": [{ "url": "https://raw.githubusercontent.com/chalidade/tools/main/public/icon-512.png" }] }

# Run the Actor and wait for it to finish
run = client.actor("toowl/favicon-generator").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "files": [
    {
      "url": "https://raw.githubusercontent.com/chalidade/tools/main/public/icon-512.png"
    }
  ]
}' |
apify call toowl/favicon-generator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,toowl/favicon-generator"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/nh4R6hwQbrAMFBbWt/builds/cetOYkgZNIoScETsI/openapi.json
