Quickstart

Making simple favicons with Favicodes is designed to be extremely straightforward. Simply imagine 1-2 chraracters from either Google Noto Sans or FontAwesome Free 5.8.1 and place them in the URL path, optionally with GET query parameters, to create your perfect favicon. Either save it to disk or reference by URL later using free to use web service, https://favi.codes

Usage

The simplest favicode of all is one made using no Unicode text. You may want a transparent favicon with no text as your favicon (instead of the dog-eared-page icon that seems to be the default for sites without a favicon). That’s easy:

https://favi.codes/

This will return a transparent, 256x256 PNG.

https://favi.codes/

You cant see it, but its just above this sentence.

Maybe you just want a simple letter or two. (No more than 2 glyphs are allowed because the letters look too cramped when there are 3 or more).

https://favi.codes/JS

This will return a favicon with “JS” in black letters on a transparent background, like this:

https://favi.codes/JS

You can also do background colors:

https://favi.codes/JS?bgcolor=gold

https://favi.codes/JS?bgcolor=gold

It you’re familiar with the Javascript logo, you may recognize where this is heading. Let’s see how close we can get it. Maybe make the text bold, and offset the X and Y to put the “JS” in the bottom right corner:

https://favi.codes/JS?&bgcolor=gold&y=35&x=65&fontsize=128&style=bold

https://favi.codes/JS?&bgcolor=gold&y=35&x=65&fontsize=128&style=bold

Now, if you’re really familiar with the JavaScript logo, you may be irked that the J extends below the line. This is because the only fonts supported by Favicodes at the moment are Google Noto Sans and FontAwesome, and that’s just how capital J’s look in both of those fonts.

There is a workaround for this logo, since it is included with FontAwesome Free. To use FontAwesome icons in your favicode, you have 2 options. The first option is if you know the proper name of the icon, such as “paper-plane” or “js”, you can use it the url after the path, /fa/, like this:

https://favi.codes/fa/js

https://favi.codes/fa/js

Obviously, this doesn’t match either. After some fiddling, I came up with this:

https://favi.codes/fa/js?color=gold&bgcolor=black&fontsize=256&y=-8&size=224

https://favi.codes/fa/js?color=gold&bgcolor=black&fontsize=256&y=-8&size=224

Alternatively, that same FontAwesome icon can be referenced by it’s Unicode code point instead, so long as FontAwesome is specified as the font. And, because the font is being specified, you’ll have to specify the style for this code point as well. The code point is f3b8 and the style is ‘brands’ for this icon. Like this:

https://favi.codes/f3b8?color=gold&bgcolor=black&fontsize=256&y=-8&size=224&font=fontawesome&style=brands

Advanced usage

We just touched on Unicode code points in the URL. You can actually specify any character input this way, including UTF-32LE characters, although I doubt any of the fonts supported have glyphs in that range. Any input past the root slash ‘/’ that is longer than 2 characters (because Favicodes can only have 2 characters) is expected to be valid hex representing a character in the font.

So, suppose you wanted to make Slashdot’s favicon. You can’t use ‘/’ or ‘.’ in the URL bar, and URL encoding wont work for the slash, because to webserver will eat the slash. All you need to know is the Unicode values for slash and dot, 002F and 002E:

https://favi.codes/02f/02e?color=white&style=extrabold&y=-25&bgcolor=0a3534

https://favi.codes/02f/02e?color=white&style=extrabold&y=-25&bgcolor=0a3534