---
title: "Discussion on \"Get Country Flag using ISO Country Code\" | Hashnode"
description: "Discussion on \"Get Country Flag using ISO Country Code\". Wouldn’t it be nice to be able to easily convert a regular ISO 3166-1 alpha-2 country code to its respective Unicode emoji flag?\nHere we go...\n'GB'.toUpperCase().replace(/./g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397));\nThis will tu..."
url: "https://hashnode.com/posts/get-country-flag-using-iso-country-code/60130803255cd51040955a49"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Get Country Flag using ISO Country Code](https://blog.victor-abz.com/get-country-flag-using-iso-country-code?utm_source=hashnode&utm_medium=feed)

Wouldn’t it be nice to be able to easily convert a regular ISO 3166-1 alpha-2 country code to its respective Unicode emoji flag? Here we go... 'GB'.toUpperCase().replace(/./g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397)); This will tu...

Jan 28, 2021 · 1 min read · blog.victor-abz.com  
Updated Jul 22, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#coding](https://hashnode.com/tag/coding)
-   [#learn-coding](https://hashnode.com/tag/learn-coding)

## Written by

[Abizeyimana Victor](https://hashnode.com/@victor-abz)

@victor-abz

  
[View profile](https://hashnode.com/@victor-abz)

Software Engineer

I will raise your revenues or decrease your costs using solutions based on logic and in most cases, it will involve a computer. Design - Build - Improve. I design solutions to your business problem, build it with you and your team and finally scale the solution to fix other related problems. I use Javascript and Python as the main languages for development but I am eager and faster to learn anything that would be put a solution on the table.

## Responses 1

Markdown supported · ⌘↵ to post

[casiimir](https://hashnode.com/@casiimir)

[Jan 28, 2021](https://hashnode.com/posts/get-country-flag-using-iso-country-code/60130803255cd51040955a49/comment/60131658255cd51040955b3f)

Cool, thank you for sharing!
