For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /embed.md.

Embed face measurement widgets

Updated 2026-10-18

11 free face measurement widgets for any website: a visitor chooses a photo, the measurement runs in their browser, and your page shows their result with a credit link to The Face Analysis. Add one with a script tag, a web component or a React component. No sign-up, no API key, free on commercial sites too.

A live example page, every widget and a code generator with preview are on thefaceanalysis.com/embed. This page is the reference.

What your visitors see

The widget is a small frame on your page. The visitor chooses a front-facing photo, waits a moment while the face is measured in their own browser, and sees their result with a link to the full tool. Three things are on your page: (1) your own content, (2) the widget, which runs in a frame, and (3) a visible credit link that is written into your page's HTML. The credit link is part of your page, not of the frame: a link inside an iframe belongs to the iframe's own document.

Widgets

toolWidgetWhat it measuresFull tool
face-shapeFace shapeWhich of seven face shapes a front photo reads as, from the width and length of forehead, cheekbones and jaw./face-shape-detector
eye-shapeEye shapeEye shape (almond, round, hooded, upturned or downturned), eye spacing and canthal tilt from the eye landmarks./eye-shape
canthal-tiltCanthal tiltThe angle of each eye's outer corner relative to the inner corner, in degrees, for each eye./canthal-tilt
nose-shapeNose proportionsNose width against the face, nose length against its width, and how it compares to the classic one-eye-width canon./nose-shape
lip-shapeLip proportionsLip fullness, the balance of upper to lower lip, the Cupid's bow and the angle of the mouth corners./lip-shape
facial-thirdsFacial thirdsHow the face height splits into upper, middle and lower thirds, and the middle-to-lower comparison./facial-thirds
fwhrfWHRFacial width-to-height ratio: cheekbone width divided by the height from brow to upper lip./fwhr-calculator
midface-ratioMidface ratioThe gap between the pupils divided by the height from the pupil line to the upper lip./midface-ratio
face-symmetryFace symmetryHow closely the left and right halves of the face mirror each other, measured from paired landmarks./face-symmetry-test
golden-ratioGolden ratioHow close three facial proportions sit to the golden ratio of 1.618, as a percentage fit./golden-ratio-face-calculator
pupillary-distancePupillary distanceThe distance between the pupils in millimetres, using the iris as the ruler, with its honest error band./pupillary-distance

Sizes: compact (360 px), standard (480 px), wide (720 px). The frame is as wide as its container up to that size, and its height follows its content.

Quick start

Script tag

HTML
<div data-tfa-widget="face-shape" data-size="standard"></div>
<script async src="https://thefaceanalysis.com/embed.js"></script>

The script builds the iframe, keeps its height equal to its content and writes the visible credit link under it into your page. Use one div per widget; you can put several on a page. An unknown data-tfa-widget value is ignored with a console warning that lists the valid ids.

Languages

The widget and the credit sentence come in 14 languages: en (English), de (Deutsch), es (Español), fr (Français), pt-br (Português (BR)), nl (Nederlands), tr (Türkçe), it (Italiano), pl (Polski), ru (Русский), ja (日本語), ko (한국어), hi (हिन्दी), id (Bahasa Indonesia). English is the default. Add data-lang to the script version, for example data-lang="de"; the plain iframe version uses https://thefaceanalysis.com/embed/de/face-shape and the credit sentence for that language (Gesichtsanalyse von for German). Only the widget and the credit sentence are translated: thefaceanalysis.com itself is in English, so the credit link and the "full measurements" link open English pages.

Web component (npm)

Install
npm install thefaceanalysis-embed
Use
<script type="module">import "thefaceanalysis-embed";</script>
<face-analysis-widget tool="eye-shape" size="wide"></face-analysis-widget>

React

React
import { FaceAnalysisWidget } from "thefaceanalysis-embed/react";

<FaceAnalysisWidget tool="fwhr" size="standard" />

The wrapper loads the web component on the client only, so it is safe in server-rendered apps; in Next.js use it inside a Client Component. import { TOOLS } from "thefaceanalysis-embed" lists the supported ids.

Plain iframe

For pages that do not allow scripts. Include the credit link yourself: it is part of the code and has to stay visible.

HTML
<iframe src="https://thefaceanalysis.com/embed/face-shape" title="Face shape detector by The Face Analysis" width="480" height="730" style="border:0;width:100%;max-width:480px" loading="lazy"></iframe>
<p style="text-align:center;font:12px system-ui,sans-serif">Face analysis by <a href="https://thefaceanalysis.com/face-shape" target="_blank">The Face Analysis</a></p>

Replace face-shape in the address with any id from the table; point the credit link at the same tool's page (the Full tool column).

Options

OptionScript tagWeb component / ReactValuesDefault
Which widgetdata-tfa-widgettoolface-shape, eye-shape, canthal-tilt, nose-shape, lip-shape, facial-thirds, fwhr, midface-ratio, face-symmetry, golden-ratio, pupillary-distanceface-shape
Sizedata-sizesizecompact, standard, widestandard

Add it to your platform

Paste the code into your platform's HTML or embed block. Platforms differ in what they keep: some remove scripts or iframes on free plans. If the script version disappears, use the plain iframe version and add the credit link as normal text; if iframes are removed too, link to the tool page. Steps below come from each platform's own help pages, and anything not verified there says so.

WordPress.com

Plan limits apply.

  1. Open the post or page and select the block inserter (+).
  2. Search for HTML and choose the Custom HTML block.
  3. Select Edit HTML if the block is in preview, paste the code and select Update.
Scripts and iframes are kept only on a paid plan with hosting features active (the help page says a paid plan alone is not enough). On the free plan they are removed when you save, so use a plain link to the widget page. Self-hosted WordPress.org uses the same block name, but its rules were not verified from official documentation: check in your editor.

Source: WordPress.com: Custom HTML block.

Wix

Plan limits apply.

  1. Select Add Elements, then Embed Code, then Embed HTML (or Embed a site).
  2. Choose Enter Code (or Enter Website Address) and paste the code or the widget address.
  3. Select Apply, then set the element's width and height to 100% so it is not cropped.
Both elements are iframes and only https addresses are shown on a published site. Because the code runs inside Wix's own frame, also add the credit link as normal text on the page itself.

Source: Wix: Adding HTML code.

Squarespace

Script version works.

  1. Add a Code block, open its editor and set the mode to HTML, then paste the code.
  2. Or add an Embed block, choose Code snippet and paste the code under Embed Data.
  3. Save and check the page in a private window.
Code blocks need the Core, Plus or Advanced plan; Embed blocks are on all plans (whether they keep scripts is not stated, so check). Custom code can be hidden while you are logged in, and Squarespace support does not troubleshoot custom code.

Source: Squarespace: Code blocks.

Google Sites

Script version works.

  1. Select Insert, then Embed, then Embed code.
  2. Paste the code and select Next, then Insert.
  3. Select Publish to see it: the editor does not run the widget.
JavaScript must be inside script tags, as in our snippet. Some sites do not allow embedding, and the page says embeds are for desktop editing.

Source: Google Sites: Embed.

Carrd

Script version works.

  1. Add an Embed element.
  2. Set Type to Code and Style to Inline so it renders where the element sits.
  3. Paste the code and publish the site: nothing shows in the builder.
Needs Pro Standard or higher. The page says script tags are accepted.

Source: Carrd: Embedding custom code.

Notion

Link only.

  1. Type /embed and choose Embed.
  2. Paste the widget address, for example https://thefaceanalysis.com/embed/face-shape.
  3. Add the credit link as normal text under it.
Notion embeds take an address only: raw iframe code and script tags are not accepted. It may not render widgets from addresses outside its supported list, so check the result; if it does not load, link to the tool page instead.

Source: Notion: Embed and connect other apps.

Ghost

Check in your editor.

  1. Add an HTML card to the post.
  2. Paste the code.
  3. Open the published post: the editor shows only a placeholder.
Ghost describes the HTML card as a way of adding code to posts; whether scripts or iframes are kept was not stated in the documentation. Check the published page.

Source: Ghost: Cards.

Webflow

Check in your editor. Steps not verified from official documentation.

  1. Add a Code Embed element inside a container.
  2. Paste the code and preview.
Webflow's code embed is reported to need a paid site plan, and its size limit was not consistent between pages. Not verified from the full official page: check in your editor.

Shopify, Blogger, Weebly and others

Check in your editor. Steps not verified from official documentation.

  1. Look for a Custom Liquid or custom HTML block (Shopify), an HTML/JavaScript gadget or the post HTML view (Blogger), or an Embed Code element (Weebly).
  2. Paste the code and publish to test.
The exact steps for these were not verified from official documentation, so check them in your editor. If your platform strips scripts, use the plain iframe version; if it strips iframes too, link to the tool page.

Resize messages

The widget posts its content height to the parent window so the iframe can match it. The script and the web component handle this for you; with a plain iframe you can listen yourself.

JavaScript
window.addEventListener("message", (e) => {
  if (e.origin !== "https://thefaceanalysis.com") return;
  const m = e.data;
  if (m && m.source === "tfa-embed" && m.type === "resize") {
    iframe.style.height = Math.ceil(m.height) + "px";
  }
});

How it works

The element creates an iframe to https://thefaceanalysis.com/embed/<tool>?h=<your hostname>. Only /embed/<tool> pages allow being framed (Content-Security-Policy: frame-ancestors *) and they are noindex; the rest of the site is unchanged.

Who it is for

Privacy and what is counted

The measurement runs in the visitor's browser: the widget is free, needs no sign-up and loads its face landmark model only after a photo is chosen. The widget frame loads no analytics and sets no cookies. We only see ordinary server request logs, which include the address of the embedding page. No photo, measurement or result is sent to us.

Terms of use

Each widget measures proportions in one photo; how every number is made and what a photo cannot measure is in the methodology. Source: thefaceanalysis-embed.

Frequently asked questions

What exactly do I embed?

A small frame that runs one of our free measurement tools on your page. Your visitor chooses a photo, the measurement runs in their browser and the frame shows their result, with a link to the full tool. Your page keeps a visible credit link to The Face Analysis.

Is the widget available in my language?

Yes: the widget and the credit sentence come in 14 languages (English, Deutsch, Español, Français, Português (BR), Nederlands, Türkçe, Italiano, Polski, Русский, 日本語, 한국어, हिन्दी, Bahasa Indonesia). Add data-lang="de" to the script version, or use /embed/de/<tool> in the plain iframe version; English is the default. The text, the labels and the number format of the result are translated. This website itself stays in English, so the credit link and the full-tool link open English pages.

Does it cost anything?

No. The widgets are free to use on any website, including commercial ones, with no sign-up. The only condition is that the credit link under the widget stays visible.

What happens to my visitors' photos?

The measurement runs in the visitor's browser: the tool is free, needs no sign-up and loads its face landmark model only after a photo is chosen. We count widget use per embedding site (the hostname only); no photo, measurement or result is part of that count.

Will it slow my page down?

Barely. The script is a few kilobytes, the frame loads lazily, and the heavy measurement model downloads only when a visitor actually chooses a photo.

No. The widget has three fixed sizes (compact, standard and wide) and the credit link has to stay visible. If a platform strips the script version, use the plain iframe version and add the credit link as normal text.

Is this a medical or cosmetic tool?

No. Each widget measures proportions in one photo and says so. Angle, smile and lighting can move a borderline reading, and a result is not a diagnosis, a judgement or advice about any procedure.

The Face AnalysisDeveloper docs