---
title: "Spain Flag (Vector SVG), Capital Madrid & Coordinates | World Atlas"
canonical: "https://pencilvsfeedback.com/vi/atlas/flag-es"
locale: "vi"
kind: "flag"
latitude: 40.42
longitude: -3.7
continent: "Europe"
datasetVersion: "2026.12.03"
verifiedAsOf: "2026-11-30"
---

# Spain Flag (ES): Vector SVG, Capital & Geography Facts

> **Quick Facts:** The national flag of Spain (ISO code: ES) represents a sovereign nation in Europe whose capital city is Madrid, located at 40.4°N, 3.7°W. Below you can inspect our crisp procedural vector SVG flag (zero broken OS flag emojis), see exact spherical Haversine distances to the 5 closest countries in our atlas, and practice recognizing Spain in Daily 6-Tile Flagle & 60s World Flag Blitz (/flag-blitz).

## Verified Geography Data
- **Country & ISO Code:** Spain (ES)
- **Capital City:** Madrid
- **Continent / Region:** Europe
- **Capital Coordinates:** 40.4°N, 3.7°W

## 5 Nearest Countries (Haversine Distance)
| # | Place | Distance (km) | Distance (mi) | Bearing | Reference |
|---|---|---|---|---|---|
| 1 | Portugal Flag | 503 km | 313 mi | ⬅️ W | https://pencilvsfeedback.com/vi/atlas/flag-pt |
| 2 | Morocco Flag | 764 km | 475 mi | ⬇️ S | https://pencilvsfeedback.com/vi/atlas/flag-ma |
| 3 | France Flag | 1,053 km | 654 mi | ↗️ NE | https://pencilvsfeedback.com/vi/atlas/flag-fr |
| 4 | Switzerland Flag | 1,152 km | 716 mi | ↗️ NE | https://pencilvsfeedback.com/vi/atlas/flag-ch |
| 5 | United Kingdom Flag | 1,263 km | 785 mi | ⬆️ N | https://pencilvsfeedback.com/vi/atlas/flag-gb |

## Frequently Asked Questions
### What is the capital city of Spain?
The capital of Spain is Madrid, located at 40.4°N, 3.7°W in Europe.

### Where can I practice identifying the Spain flag in a free quiz?
Practice identifying Spain alongside 59 other crisp vector SVG world flags in World Flag Blitz & Daily 6-Tile Flagle at pencilvsfeedback.com/flag-blitz (100% free, zero login).

- Play Live: https://pencilvsfeedback.com/vi/flag-blitz
