Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Fonts
  3. Country Icons

Country Icons

MITHTMLv7.5.0

A curated collection of all country flags in SVG format with CSS for easy web integration.

Visit WebsiteGitHubGitHub
12.1k stars1.9k forks0 contributors

What is Country Icons?

flag-icons is an open-source CSS and SVG library that provides a curated collection of all country flags for web developers. It solves the problem of sourcing and styling national flags by offering ready-to-use, scalable SVG assets with accompanying CSS classes for easy integration into websites and applications.

Target Audience

Frontend developers and web designers who need to display country flags in user interfaces, such as for language selectors, location indicators, or internationalized content.

Value Proposition

Developers choose flag-icons for its comprehensive, high-quality SVG flag collection, simple CSS-based integration, and customization options via SASS, eliminating the need to manually handle flag assets and styling.

Overview

:flags: A curated collection of all country flags in SVG — plus the CSS for easier integration

Use Cases

Best For

  • Adding country flags to language selection dropdowns
  • Displaying user nationality or location in profile pages
  • Building internationalized applications with flag indicators
  • Creating travel or geography-related websites
  • Implementing flag-based filters or sorting interfaces
  • Enhancing UI for multi-region e-commerce platforms

Not Ideal For

  • Applications requiring animated or interactive flag displays
  • Projects needing flags for non-country entities like states or organizations
  • Teams using component-based frameworks that prefer inline SVG markup over CSS backgrounds

Pros & Cons

Pros

Complete Flag Coverage

Includes high-quality SVG flags for every country based on ISO 3166-1-alpha-2 codes, eliminating the need to source assets individually.

Simple CSS Integration

Provides ready-to-use classes like .fi-gr for easy inline implementation, handling background styling automatically without manual CSS work.

SASS Customization

Allows selective inclusion of specific countries and path overrides through SASS variables, as shown in the README, reducing bundle size.

CDN Availability

Can be loaded directly from a CDN for quick setup without local installation, simplifying deployment.

Cons

Accessibility Limitations

Flags are implemented as CSS background images, which lack built-in alt text for screen readers, requiring additional HTML attributes for accessibility.

Build Step for Optimization

To include only specific flags, developers must use SASS and rebuild the CSS, adding complexity compared to drop-in solutions.

Limited Styling Flexibility

Relies on background properties, making it harder to apply advanced CSS effects or animations without overriding default styles.

Frequently Asked Questions

Quick Stats

Stars12,075
Forks1,945
Contributors0
Open Issues21
Last commit9 days ago
CreatedSince 2013

Tags

#open-source#internationalization#svg#frontend#ui-components#web-development#css-library#css

Built With

S
Sass
C
CSS
S
SVG

Links & Resources

Website

Included in

Fonts1.9k
Auto-fetched 1 day ago

Related Projects

material-design-iconsmaterial-design-icons

Material Design icons by Google (Material Symbols)

Stars53,161
Forks9,728
Last commit7 days ago
Font CustomFont Custom

Generate custom icon webfonts from the comfort of the command line.

Stars3,296
Forks420
Last commit3 months ago
FontAwesomeKitFontAwesomeKit

Icon font library for iOS. Currently supports Font-Awesome, Foundation icons, Zocial, and ionicons.

Stars2,805
Forks308
Last commit5 years ago
IconicIconic

A minimal set of icons in raster, vector and font formats — free for public use.

Stars2,347
Forks335
Last commit6 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub