hampusborgos/country-flags

SVG and PNG renders of all countries' flags.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 45 minutes ago
Type:Curated List / Learning ResourceCategory(s):Icons & FontsGeospatial & MapsWeb Development
Added to GitGenius on September 18th, 2026
Created on July 14th, 2012
Open Issues & Pull Requests: 38 (+0)
GitHub issues: Enabled
Number of forks: 1,012
Total Stargazers: 3,788 (+0)
Total Subscribers: 58 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 44.3 hours
Mean response time: 233.3 days
90th percentile: 210.3 days
Tracked items: 10

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 2
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 591 days
Stale 30+ days: 2
Stale 90+ days: 2

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (2)
  • wontfix (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Country-flags is a collection of SVG and PNG renders of all countries' flags organized by ISO country code.

The project addresses the need for accurate, legally compliant flag imagery by maintaining renders that closely match official country and territory legislation. Source files originate from Wikimedia Commons, with contributions back to that repository when legislation reveals inaccuracies in existing renderings. Since flags exist in the public domain, the collection is free from copyright restrictions, though usage restrictions may apply in specific jurisdictions.

The tool suits projects requiring flag assets for web applications, reference materials, or data visualization. Developers can access flags through direct download, Git cloning, or NPM installation. The collection includes both SVG sources and pre-rendered PNG exports at three standard widths. For developers needing custom PNG dimensions, the project provides Node.js build scripts using svgexport and imagemin-cli, with manual conversion instructions available for those unable to run automated builds. The flags are named using 2-letter ISO-3166 country codes, with exceptions for Great Britain's constituent countries using 6-letter codes and Kosovo using the user-assigned code XK. A JSON mapping file connects ISO codes to country names.

Development activity shows consistent maintenance focused on accuracy. The project accepts contributions from users who identify discrepancies between renderings and official flag legislation. Updates to source files reflect corrections contributed back to Wikimedia Commons when inaccuracies are discovered. The codebase includes tooling for PNG generation at arbitrary dimensions, indicating ongoing attention to practical usability across different deployment scenarios.