# Emoji favicon generator

Make an SVG favicon from an emoji or one or two letters, with the ready-to-paste link tag for your page head.

- Endpoint: `POST https://setget.net/v1/tools/emoji-favicon` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `emoji-favicon`
- Page: https://setget.net/tools/emoji-favicon

## Inputs

- `text` (required, string): One emoji, or one or two letters or digits.
- `background` (optional, string, default `"#1e293b"`): Colour of the square behind it: hex, a basic colour name, or "transparent".
- `text_colour` (optional, string): Letter colour. Chosen for contrast when left out. Emoji keep their own colours.
- `shape` (optional, string, one of `square`, `rounded`, `circle`, default `"rounded"`): Outline of the icon.
- `size` (optional, integer, default `64`, range 16..512): Width and height of the SVG in pixels. Browsers scale it as needed.

## Example 1

```json
{"input":{"text":"S","background":"#2a78d6","shape":"square"}}
```

Result:

```json
{"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"64\" height=\"64\" viewBox=\"0 0 100 100\"><rect width=\"100\" height=\"100\" fill=\"#2a78d6\"/><text x=\"50\" y=\"72.4\" font-family=\"Helvetica,Arial,sans-serif\" font-size=\"64\" font-weight=\"bold\" text-anchor=\"middle\" fill=\"#ffffff\">S</text></svg>","width":64,"height":64,"html":"<link rel=\"icon\" href=\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2264%22%20height%3D%2264%22%20viewBox%3D%220%200%20100%20100%22%3E%3Crect%20width%3D%22100%22%20height%3D%22100%22%20fill%3D%22%232a78d6%22%2F%3E%3Ctext%20x%3D%2250%22%20y%3D%2272.4%22%20font-family%3D%22Helvetica%2CArial%2Csans-serif%22%20font-size%3D%2264%22%20font-weight%3D%22bold%22%20text-anchor%3D%22middle%22%20fill%3D%22%23ffffff%22%3ES%3C%2Ftext%3E%3C%2Fsvg%3E\">"}
```

## Example 2: An emoji on a dark rounded square

```json
{"input":{"text":"🚀"}}
```

**Where do I paste the tag?** Inside the <head> of your page. No image file is needed: the icon lives in the tag itself.

**Does every browser show it?** Current Chrome, Edge, Firefox and Opera show SVG favicons. Safari support is partial, so keep a favicon.ico as a fallback if that matters.
