Tabler Flags
Over 300 country, territory and organisation flags in four styles, as a CSS plugin, SVG and PNG files, and React, Vue, Preact and Astro components.
Tabler Flags is a collection of 304 flags: every country, the territories, unions such as the European Union, and a few other flags without an ISO code. Every flag is drawn on the same 5:4 canvas, so a row of flags lines up whatever the countries are.
<span class="flag flag-lg flag-country-pl"></span>
<span class="flag flag-lg flag-country-us"></span>
<span class="flag flag-lg flag-country-jp"></span>
<span class="flag flag-lg flag-country-br"></span>
<span class="flag flag-lg flag-country-eu"></span>You can use the flags in three ways:
- CSS plugin: add the
flagandflag-country-*classes to a<span>. Works with plain HTML and any framework, and needs only one extra stylesheet. This is the plugin that ships with Tabler. - Libraries: render flags as native, tree-shakable components in React, Vue, Preact or Astro, with type-checked props and a choice of four visual variants.
- Static files: download every flag as an SVG or PNG file, for design tools, emails and anything that is not a web page.
All three use the same artwork, so you can mix them or switch between them without visual changes.
Quick start
For the CSS plugin, include the stylesheet from a CDN and add a <span> with the country's class:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tabler/[email protected]/dist/css/tabler-flags.min.css" integrity="sha384-TAgEM/RmHEEj1XpVctUFWq9y+v3Wm9NV7aOJ41l6+wca2R6j5J/Dis60BEozciMh" crossorigin="anonymous" />
<span class="flag flag-country-pl"></span>For a framework project, install the package for your stack and import the flags you need - only the flags you import end up in your bundle:
import { FlagPoland } from '@tabler/flags-react';
<FlagPoland size={32} />
The CSS plugin page documents all classes, sizes and the full list of flags; each library page covers installation and props for its framework.



