Fictional Country Flag Generator

Writing a novel, running a D&D campaign or building a game? Hit 🎲 Random flag until something fits your nation, then refine it.

Coming soon: HD print-ready files (300 DPI PDF with bleed) for real-world flag printing. Everything on this page stays free.

Layout

Aspect ratio

Colors

Add symbol

Add text

Layers

Worldbuilding tips for fictional flags

Want to remix a real-world flag instead? Use the country flag redesign tool.

How the random flag generator works

Each press of 🎲 Random flag picks one of seventeen layouts (bicolor, tricolor, Nordic cross, saltire, canton, chevron, border, diagonal and more), a palette chosen for contrast, and sometimes a symbol placed at the hoist or center. Nothing is truly random in a chaotic way: the generator follows the same rules good flag designers use, so most results already look like a plausible national flag. Press it until something feels right, then press Undo if you went one step too far.

Once you like a result, refine it: change one color to match your nation's story, swap the symbol for something meaningful, and set the aspect ratio. Then download or copy the share link to keep it.

A five-minute process for designing a fictional nation's flag

  1. Write one sentence about the nation. "A cold mountain republic that won independence from a sea empire" gives you more to work with than a list of facts.
  2. Turn that sentence into colors. Mountains and cold suggest white and slate blue; independence might add red. Stop at three.
  3. Pick a layout that hints at history. A Nordic cross suggests a regional family; a canton suggests a former colony; a vertical tricolor suggests a revolution in the style of 18th-century republics.
  4. Add at most one symbol. A mountain, star, sun, tree or crescent.
  5. Test it on a map. Download a 600px PNG and paste it next to your map labels. If you cannot tell it apart from its neighbors, change the layout, not just the colors.

Worldbuilding with flag families

Real flags come in families, and copying that pattern makes an invented world feel lived in. Neighboring kingdoms that share a religion or founding people often share a layout – think of the Nordic crosses of Scandinavia or the pan-Arab colors of red, white, green and black. Former colonies frequently keep the old empire's canton or colors. Rival states sometimes choose deliberately opposite palettes.

To build a family in this tool, design the "parent" flag first and copy its share link. Open the link again for each related nation and change only one thing: the color of the cross, the symbol, or the stripe order. Save every version's link in your world document so you can always reopen and edit it.

Flags for fantasy, sci-fi and tabletop games

Using your flags in maps and games

For map-making tools such as Inkarnate, Wonderdraft or Azgaar's Fantasy Map Generator, export a PNG at 600 or 1200 pixels and import it as an image or icon. For game engines (Unity, Godot, RPG Maker) the SVG keeps file sizes tiny and can be rasterized at whatever resolution your sprites need; for textures on 3D flag meshes, a 2048px-wide PNG is a good starting point. For Discord servers and forums, a 1:1 square export makes a clean emoji or role icon.

Making your flag unique

Random results can occasionally resemble a real country's flag, because there are only so many tricolors. Before you publish a book cover or a game, compare your design with real flags of a similar layout. If it is close, add a symbol or change the ratio. If you want a flag that is clearly based on a real one – an alternate-history Germany, for example – start from the country flag redesign tool instead, and read our flag design principles for the five rules most good flags follow.

Describe your flag in one sentence

Real flags have official written descriptions, and writing one for your fictional flag forces clarity. Use simple flag vocabulary: the field is the background, the hoist is the side near the pole, the canton is the upper hoist corner and a charge is any symbol. For example: "A green field with a white Nordic cross and a gold star in the canton." If you cannot describe your flag in one sentence, it is probably too complicated. Our guide to the parts of a flag lists all the terms.

Common mistakes in fictional flags

Need inspiration beyond the random button? Our list of 20 fantasy flag ideas gives ready-made concepts for kingdoms, guilds and sci-fi factions.

FAQ

How does the random flag generator work?

It picks a random layout, a harmonious palette and sometimes a symbol. Press the button again for a new one, or Undo to go back.

Can I use generated flags in my book or game?

Yes. Flags made from our built-in shapes can be used in your own creative projects, including commercial ones.

Can I get a transparent or vector file?

Download SVG for a vector file you can edit in Inkscape, Illustrator or Figma.

Can I get the same random flag again?

Copy the share link as soon as you like a result. The link stores the full design, so you can reopen and edit it any time.

How many different flags can it make?

Millions: 17 layouts times hundreds of palettes, symbols and positions. Every result is also editable, so the real limit is your imagination.

Can I lock some colors while randomizing?

Not yet. A good workaround is to press Random until the layout feels right, then set your own colors, or press Undo to step back to a previous result.

Which aspect ratio should a fictional flag use?

2:3 is a safe default. Use 1:2 for a hoist-side symbol or canton, 1:1 for avatars and emoji, and vary ratios between cultures to make your world feel diverse.

More free flag tools