Link in Bio Page Generator
Operator: Abdulla Al Fahad. How tools are built and checked
A link-in-bio page is a list of buttons under a name and a photo, so it needs no account, no tracker and no monthly fee, only one HTML file on any static host. Fill in the profile, links and social profiles here and download index.html. In the Forest theme with the three starter links and two social profiles the file is 2,949 bytes, and it makes no network request of its own.
What it leaves out matters as much as what it includes: there is no share image and no analytics, so decide how you will cover both before you put the address in a profile.
Key features
- Up to 30 links and 10 social profiles, with an optional emoji on each link
- Six themes (Light, Dark, Sunset, Forest, Ocean, Paper), custom colours with an optional gradient, three button styles, three corner shapes and four font stacks
- A square 192 px avatar cut from your photo and embedded in the file as a JPEG data URI
- WCAG contrast checks for body text and filled buttons, and a noindex option
What is inside the exported page
Each link needs a label and an address starting with http, https, mailto or tel. A social entry accepts a username (github: alexrivera becomes https://github.com/alexrivera), a full URL, an email address or a phone number of 6 to 15 digits, and each network shows its own hint.
The exported file holds no script and no external stylesheet, font or image. A Content-Security-Policy meta tag allows images only from data: URIs and styles only inline, so the page cannot load remote files even if a host injects markup into it; links open with rel=noopener noreferrer. The head has a title, a description cut from the bio at 160 characters and og:title and og:description tags. A social preview image is not included, because it would need a hosted file.
How it works
A link address is trimmed and tested against an allow-list: http, https, mailto or tel, with a bare domain such as example.com/newsletter given https://. Anything else is left out and named in the checks. A social entry is turned into a URL from the network's own base (github: alexrivera becomes https://github.com/alexrivera), and an email or phone value becomes a mailto: or tel: link after its digits are checked.
The avatar is cut to a centred square, drawn at 192 by 192 pixels on a white background and written as a JPEG at quality 0.85, then embedded as a base64 data URI and shown at 96 CSS pixels. Every string is HTML-escaped, the colours must be hex values, and the preview in the page is a sandboxed frame whose links are switched off.
The Content-Security-Policy meta tag is default-src 'none' with only data: images and inline styles allowed, which is why adding a script or a web font later means editing that tag as well.
Typical uses
- An analyst lists a newsletter, a cheat sheet and a call-booking link, picks Forest, and drops the 2,949-byte file into a GitHub Pages repository as index.html.
- A small café wants the menu PDF, a reservations phone number and an Instagram profile on one page: a link to the PDF's address, a phone entry and the username, all in the Sunset theme. The page's checks use the WCAG contrast formula on the theme's colours, and Sunset clears 4.5:1 for white text at both gradient ends (5.18 on #c2410c, 7.88 on #9d174d) and for the button label #7c2d12 on white (9.37).
Building one
- Enter your name, a handle or tagline and a bio of up to 300 characters, and add an avatar if you want one.
- Add links and social profiles, and reorder the links with Up and Down.
- Pick a theme, adjust colours, button style, corners and font, and read any contrast warning.
- Download index.html, or save the settings JSON to change the page later.
Example
Links and social profiles typed in for Alex Rivera's page
Link Newsletter: example.com/newsletter
Link Mail me: mailto:alex@example.com
Link Broken: htp:/example
GitHub: alexrivera
Phone: +1 (555) 123-4567What is written into the page, and what the checks say
href="https://example.com/newsletter"
href="mailto:alex@example.com"
Link 3 (Broken): "htp:/example" is not an allowed link, so it was left out. Use http, https, mailto or tel.
href="https://github.com/alexrivera"
href="tel:+15551234567"Tips for best results
- Treat the settings JSON as the source of truth. It holds the avatar as well, so loading it restores the page exactly.
- Outline and soft-tint buttons take their text from the page text colour, so only the filled style is checked for button-text contrast.
- Long labels wrap inside the button, and unbroken strings are broken to fit, so even a pasted URL used as a label stays within the 480 px column.
Things to check before you rely on it
The page carries og:title and og:description but no og:image, og:url or Twitter card tags. When the link is pasted into a chat or a post, the preview is a bare title and description with no picture, because a share image would have to be a hosted file the page does not reference. Add the tags to the head by hand once you have an image URL; crawlers read them without the page loading the image itself.
The avatar is stored as base64 text inside the HTML, which is about a third larger than the JPEG itself. Measured in a browser at 192 by 192 and quality 0.85, a flat colour came to 1,327 characters, a smooth gradient to 2,615 and pure noise, the worst case, to 36,027, so a real photo lands in between. A settings JSON that carries an avatar larger than 250,000 characters is ignored on load.
The noindex box adds a robots meta tag, and it is off by default, so a page you host is open to search engines unless you tick it. It does not stop anyone who has the address from opening the page.
The page has no analytics. For click counts you need a host that gives you access logs or a redirect you control, and a script would also mean editing the Content-Security-Policy tag the file ships with.
Common errors and how to fix them
- "Link 2 (Promo): "javascript:alert(1)" is not an allowed link, so it was left out."
- Only http, https, mailto and tel addresses are written into the page. Add the scheme, for example https:// in front of a bare domain with a path, and the link is included.
Best practices
- Open the downloaded file in a private window on a phone before sharing its address. The preview here is a sandboxed frame with links switched off, so it cannot show where a link goes.
Frequently asked questions
Why are the social links text and not icons?
Icons would be remote images or inline artwork. Text links keep the file self-contained and readable by screen readers, at the cost of a plainer look.