How flagcreator.app Works

The evidence behind the flag creator: what draws your flag, where each shape and symbol comes from, what you may do with the result, which emblems are left out, how it is tested, and how to check that your design stays on your device.

Updated

Open the flag creator

What happens on your device

Your flag is a short description held in the page: its proportions, its layout, its colors and a list of overlays and emblems. The site's flag engine turns that description into one SVG file. The preview on the page is that same SVG, loaded as an image from a blob: address inside the page and drawn onto a canvas, and the PNG is drawn from it the same way, so the preview, the PNG and the SVG always show the same flag. Nothing is uploaded: there is no server that receives a design.

Text is turned into outlines with opentype.js 2.0.0, an open-source font library, using three font files served by this site (Inter, Source Serif 4 and Alfa Slab One), so the SVG holds shapes and paths only: no script, no text element and no link to another file. A picture you add is read on your device, checked, and embedded in the SVG as data. An SVG picture is rebuilt from its plain shapes first, with any script left out, so it cannot run one.

Each tool page keeps the flag you are working on in this browser's storage, without its pictures, so it is there when you come back (the random page starts on a new flag each time); Start over replaces it with a plain white flag. Pictures you add are held in the page's memory, and in a design file if you press Save design. After the first visit, the editor and its downloads work with no internet connection; each text font is fetched the first time you use it, and works offline after that.

Where the shapes come from, and what you may do with your flag

The layouts, the national templates and the geometric shapes (stars, crescents, suns, rings, arcs, crosses and shield outlines) are drawn by the engine's own code. The US Copyright Office's Compendium of practices says familiar symbols and designs are not copyrightable, and its examples include stars, crosses, crescents, chevrons and checkerboards.

The other 22 symbols in the library, the animals, plants, tools and three heraldic charges (crown, fleur-de-lis and castle), come from Openclipart, where each is public domain under the Creative Commons CC0 dedication; each was checked one by one and drawn as a single-color silhouette. The source address and license of each are listed in the site's licenses file. Nothing in the library is under a license that asks for credit or share-alike terms.

So the flag you make is yours to use, print and sell, and no credit line is needed. Two limits come from outside this site. A picture you add must be one you have the right to use. And a national flag can have rules of its own in its country: in the United States, for example, the Flag Code says no mark, word or picture should be placed on the flag (4 U.S.C. 8). If you start from a country's flag, check that country's rules before you use the result in public. This page describes the rules; it is not legal advice.

Emblems the library leaves out

Some emblems are left out on purpose. The red cross, red crescent and red crystal on white are protective signs that the Geneva Conventions and US law (18 U.S.C. 706) reserve for medical services and the Red Cross, so no template or random flag shows them; the library's crosses and crescents are plain shapes that you color yourself. The Olympic rings are reserved to the US Olympic and Paralympic Committee, and government seals are restricted by law, so neither is in the library. Nazi and other hate symbols, and the logos of companies, sports teams and fiction franchises, are left out by our own choice.

How it is tested

The engine tests draw each of the 37 national templates at the 4:3 shape of flag-icons 7.6.0, an open-source set of flag pictures (MIT license), and compare it at 640 × 480 pixels with that country's picture there. The share of pixels that differ is recorded for each flag; the largest is 3.3 percent (Chile and Czechia), and a test fails if a flag moves further from its reference or above 4 percent.

Other engine tests check that every layout, template, symbol and emblem gives an SVG with no script, no embedded web page and no link except to data inside the file; that hostile design files (wrong types, 10,000 emblems, sizes in the billions, a megabyte of text, a color that is not a color) are refused with an error code; that a picture over the limits is refused and an SVG picture keeps only its plain shapes, without scripts or outside links; that 500 random flags saved and opened again come back the same; that 2,000 random flags are all valid and pass the design check; and that text becomes outlines.

Page tests drive the site in a browser with a script: build a tricolor from blank, download it as a PNG 3,840 pixels wide and compare it pixel for pixel with the engine's SVG; add a symbol, move, resize and turn it with the keys and by dragging, then undo and redo; add text, a PNG and an SVG picture and find them in the download, while an SVG with a script in it runs nothing; save a design and open it again; open a damaged design file; make a random flag and show a real country's name; start each page on its own template; prepare the printed outline on Letter and A4; and design and download offline.

Last tested 2026-11-22 in Chrome, Safari's engine (WebKit) and Firefox: the 9 page tests and the shared checks of every page in all three, and the engine's 8 test groups.

Limits

A flag can hold up to 40 emblems and up to 40 overlays. A star group holds up to 100 stars, a text up to 80 characters, and a picture can be a PNG, a JPEG or a simple SVG of up to 5 MB and 4,096 pixels a side, with up to 25 MB of pictures in one design. Stripes go from 2 to 13, and the proportions from square (1:1) to three times as wide as high (1:3). Undo goes back 60 steps.

The PNG can be up to 8,192 pixels wide. Some browsers cannot draw a picture that large; when yours cannot, the page says "This browser could not draw the image at this size. Try a smaller width." Copy image needs a browser that lets a page put an image on the clipboard; where it does not, the page says to download the PNG instead.

Not tested yet: real phones, an outline printed on paper (the tests check the print page, not a printer), a cloth flag printed from a downloaded file, and the SVG opened in vector editors.

How to check that nothing is sent

You do not have to take this on trust. Three checks, from quickest to most thorough:

  1. Go offline. Load the flag creator, turn off Wi-Fi, then design a flag, add a picture and download it. Everything works as before, which could not happen if your design had to reach a server.
  2. Watch the network. Open your browser's developer tools, go to the Network tab, then type text on the flag, add a picture and save a design. The page fetches its own files from flagcreator.app and, if analytics is on, sends small requests to Google Analytics and Microsoft Clarity. None contains your text, your picture, a file name or your design.
  3. Read the security policy. Every page is sent with a Content-Security-Policy header that tells the browser to block the page from sending data anywhere except flagcreator.app, Google Analytics (with Google Tag Manager, which loads it) and Microsoft Clarity. Its connect-src line names only those.

Before each release, a test types text with a marker in it onto a flag, adds a picture and opens a design file with markers in their names, while the analytics scripts run; a marker in any request or any attribute of the page fails the test. The flag itself is drawn on a canvas, never as a picture element the analytics could read. Microsoft Clarity records how the page is used, with all text masked and the flag drawn on a canvas it cannot read. What Google Analytics and Microsoft Clarity receive is on the privacy page.