Codepackr / image / Favicon Generator

Favicon Generator

Generate standard favicon sizes (16x16, 32x32, 48x48, 180x180) from an image.

Client-Side Execution & Privacy Guarantee

This utility executes 100% locally in your web browser. Your inputs, tokens, queries, and data payloads are never transmitted to any external server or backend.

A favicon is the small icon shown in browser tabs, bookmarks, and mobile home screens. Modern sites need several pixel sizes so the icon remains sharp on high-resolution displays and on different platforms.

The generator takes a single source image and produces the common sizes used by browsers and operating systems. All resizing happens locally, so your logo or icon never leaves the device.

Standard sizes and their uses

16x16 and 32x32 are the classic sizes for browser tabs and bookmarks. 48x48 is often requested by Windows and some desktop environments. 180x180 is the size used by Apple for iOS home-screen icons.

Supplying all four covers the majority of current desktop and mobile browsers. Additional sizes can be created later if a specific platform requires them.

Source image requirements

A square source image produces the cleanest results. Non-square images are centered and cropped or padded according to the tool's fit mode. High-resolution sources (at least 180 px on the shortest side) avoid upscaling artifacts.

PNG with transparency is the preferred input because it preserves any transparent regions in the smaller outputs. JPEG sources are accepted but will have an opaque background.

Resampling and output

Each size is produced by resampling the source to the exact pixel dimensions. The algorithm prioritizes sharpness for small icons while reducing aliasing.

Outputs are delivered as individual PNG files. You can download them one by one or as a set for inclusion in your project.

When to use this tool

  • Creating the favicon set for a new website or web application
  • Updating an existing site's icons after a logo change
  • Generating the 180x180 Apple touch icon from a larger master
  • Producing consistent small icons for documentation or a design system
  • Quickly checking how a logo will appear at tab size

How to use the Favicon Generator

  1. Select or drop a square (or near-square) source image.
  2. Confirm the preview of the original.
  3. Choose which of the standard sizes you need.
  4. Generate the resized versions.
  5. Inspect the small previews to verify clarity.
  6. Download each PNG or the full set.
  7. Place the files in your site's public directory and reference them in the HTML head.

Worked examples

Logo to standard set

Input
512x512 PNG logo with transparent background
Output
Four PNGs: 16x16, 32x32, 48x48, and 180x180, each preserving the original transparency

The 16x16 version is the most critical for tab readability; fine details may simplify at that size.

Non-square source

Input
800x600 JPEG product photo
Output
Four square PNGs with the image centered and letterboxed or cropped to fit

Starting from a non-square image usually requires manual cropping first for the best composition at small sizes.

Common mistakes and tips

  • Begin with a source that is at least 180 pixels square to avoid upscaling the largest icon.
  • Simplify the design for the 16x16 size; thin lines and small text often disappear.
  • Keep the important visual elements near the center so cropping does not remove them.
  • Test the 16x16 and 32x32 icons in an actual browser tab before deploying.
  • PNG is the recommended output format because it supports transparency and remains sharp at small sizes.

Frequently asked questions

Do I need every size?

Most sites benefit from all four. 16x16 and 32x32 cover classic browsers; 180x180 covers iOS home screens; 48x48 helps on some desktop platforms.

What if my source is not square?

The tool centers the image and produces square outputs. For best results, crop the source to a square composition first.

Will transparency be preserved?

Yes, when the source is a PNG (or other format that supports alpha). JPEG sources produce opaque icons.

Can I generate additional custom sizes?

The tool focuses on the four most common sizes. Use a general image resizer for any other dimensions you need.

How should I reference the icons in HTML?

Use link tags with the appropriate rel and sizes attributes, for example rel="icon" for the small sizes and rel="apple-touch-icon" for the 180x180 file.