Free plan

Favicon Pack

Make all the icon sizes a website needs from one logo
POST
/v1/images/favicon

About this tool

Makes the small icon that shows in a browser tab (a favicon), plus the icons that phones and apps need for the home screen, all from one logo. It also gives you the short setup text that tells a website where the icons are. A square SVG, or a PNG of at least 512 by 512, gives the sharpest result.
For example, you turn your company logo into a full set of icons for your new website.

How to use it

  1. Choose this tool.
  2. Add your logo with Upload or drag and drop.
  3. Choose which icons to make and set the app name and colours if you want.
  4. Press Generate.
  5. Download the icon pack.

What you get back

You get a pack of icon files in many sizes, with the setup text, ready to download and add to your site.
GOOD TO KNOW
Icon sizes are data in the engine, so new platform icons are additions, not rewrites. A non-square source is centred on a square canvas, not cropped; a source smaller than 512 px produces a warning.
TEST IT LIVE

Try Favicon Pack in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Images
Plan
Free
Method
POST
Endpoint
/v1/images/favicon
Tool ID
images.favicon
Authentication
API key
Accepts
JPEG, PNG, WEBP, GIF, AVIF, TIFF +15 more
Background jobs
Yes
Usage group
Image
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/images/favicon" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'images=@photo.jpg' \
  -F 'padding=0' \
  -F 'display=standalone' \
  -F 'output_bundle=zip'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.images.favicon({
    "images": 'photo.jpg',
    "padding": 0,
    "display": "standalone",
    "output_bundle": "zip"
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->images()->favicon([
    'images' => 'photo.jpg',
    'padding' => 0,
    'display' => 'standalone',
    'output_bundle' => 'zip',
]);
echo $result->requestId;
FAQ

Frequently asked questions

One logo in, every icon a site or installable web app needs out: a multi-size `favicon.ico`, 16 and 32 px PNGs, the 180 px Apple touch icon, the 192 and 512 px web-app icons plus a maskable 512 px icon (artwork kept inside the safe zone), and a Windows tile. The answer also carries the web app manifest and the `<head>` snippet that wires the files in. A whole pack counts as one file against your plan. Send a square SVG, or a PNG of at least 512×512, for the sharpest result.

Favicon Pack accepts JPEG, PNG, WEBP, GIF, AVIF, TIFF, SVG, SVGZ, BMP, ICO, APNG, PNM and 9 more. You can send several files in one request.

Favicon Pack is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/images/favicon with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.