SVG Flags – Beautiful Scalable Country Flags


NEW! Latest plugin version now allows you to add SVG flags directly to the Gutenberg block-based editor via the [svg-flags] shortcode. See plugin settings page for full instructions.

SVG Flags of the world allows you to add one or more flags from any country to your WordPress site. Each flag is an SVG image which means you can scale it to ANY size and it will still look fantastic.

See the live demo for various ways you can add flags to your site, along with sample code.

Please rate this Plugin if you find it useful. Thanks to all our free plugin users for your continued support! It’s very much appreciated. 🙂

See our WordPress plugin site for more WordPress plugins!


  • SVG flags rendering in the Gutenber block-based editor.
  • SVG Aspect Ratio.
  • Headings.
  • Div, Span, and Paragraph elements.
  • Flag Sizes.
  • Tables.
  • Example Usage.


This plugin provides 2 blocks.

Bar Chart
Example: last post


  1. Via the WordPress admin go to Plugins => Add New.
  2. Enter ‘SVG Flags’ (without quotes) in the textbox and click the ‘Search Plugins’ button.
  3. In the list of relevant Plugins click the ‘Install’ link for SVG Flags on the right hand side of the page.
  4. Click the ‘Install Now’ button on the popup page.
  5. Click ‘Activate Plugin’ to finish installation.
  6. Go to plugin settings to get started via Settings > SVG Flags.


June 14, 2018
I really nice simple plugin for maps. It would be nice to add the flags via shortcodes or in the titles, and posts without the use of HTML.
Read all 3 reviews

Contributors & Developers

“SVG Flags – Beautiful Scalable Country Flags” is open source software. The following people have contributed to this plugin.



0.8, DEC 02, 2020

  • Updated settings.

0.7, DEC 30, 2019

  • Updated settings page.

0.6, DEC 24, 2019

  • Maintenance release.

0.5, DEC 23, 2019

  • Fixed ‘square’ shortcode attribute.
  • Most of the code refactored.
  • Compatible with WordPress 5.3.

0.4, MAY 21, 2019

  • Minor bug fix.

0.3, MAY 21, 2019

  • Added new [svg-flags] shortcode as a recent update to the Gutenberg block editor seems to strip out using the SVG flag HTML directly. Use the new shortcode to guarantee the flag will always display in the block editor and on the front end.

0.2, APRIL 26, 2019

  • Flag SVG’s updated to latest version (3.3).
  • SVG flags now work in the WordPress (5.0+) block editor.

0.1, OCTOBER 25, 2017

  • Initial plugin release!