A collection of country flags in SVG format, created for display at small sizes. Each flag is less than 900 bytes. Licensed under CC BY-SA.
Link directly to the SVG files
https://vlags.com/original/br.svg
https://vlags.com/3x2/br.svg
https://vlags.com/1x1/br.svg
Download
Styling
The SVG files have no inherent width or height, use CSS for sizing and styling
Attribution
Creative Commons licenses require attribution. For web and app projects, at a minimum, please reference 'vlags' in the public directory where you store the files so that others can discover and benefit from the project. If you are linking to the files on vlags.com, there is no need for any further attribution.
I was interested in exploring if it was possible to create tiny versions of country flags less than 1 KB in size, that are suitable for use at small scales and still look good when viewed up close. Many existing SVG flag sets have large file sizes, even when their features have been simplified. In some cases, these flags have details that look incorrect or are inconsistent with the originals.
To create this set, each flag was drawn by hand (trackpad) in Illustrator at the same proportions as the official flag but with a reduced canvas size, generally less than 100 px in either direction. Flags from Wikipedia were used for reference and placed on the bottom layer of the working file. Claude Code was used for much of the grunt work, fetching the files from Wikipedia and putting them into base files at the reduced canvas size.
The result is a set with an average file size of 430 bytes, the largest file being 875 bytes (Mexico) and the smallest 135 bytes (Poland) for the 2:3 versions. The small file sizes are mainly achieved with the following techniques: