π Quick Navigation
Getting Started
Learn the fundamentals of working with ISO standards and how to integrate them into your projects.
Search & Discover
Use our comprehensive search to find any ISO code across all standards.
Tools & Utilities
Access converters, validators, and bulk processing tools.
API Integration
Integrate ISO codes into your applications via our RESTful API.
What are ISO Standards?
Understanding the foundation of international standardization
ISO (International Organization for Standardization) develops international standards that ensure products and services are safe, reliable, and of good quality. ISO codes provide standardized ways to represent:
- Countries and territories (ISO 3166)
- Languages (ISO 639)
- Currencies (ISO 4217)
- Date and time formats (ISO 8601)
- Script codes (ISO 15924)
ISO 3166 Country Codes
Complete guide to working with country codes in your applications.
Code Formats
Understanding the three different country code formats
- Alpha-2: Two-letter codes (US, GB, DE)
- Alpha-3: Three-letter codes (USA, GBR, DEU)
- Numeric: Three-digit codes (840, 826, 276)
// Example usage in JavaScript
const countryCode = 'US';
const countryName = 'United States';
const numericCode = '840';
// Validation example
function isValidCountryCode(code) {
const validCodes = ['US', 'GB', 'DE', 'FR', 'JP'];
return validCodes.includes(code.toUpperCase());
}
Common Use Cases
Where and how country codes are typically used
- E-commerce: Shipping addresses and billing validation
- Internationalization: Locale-specific content and formatting
- Domain names: Country-code top-level domains (ccTLDs)
- Banking: IBAN and SWIFT code validation
- Analytics: Geographic data analysis and reporting
ISO 639 Language Codes
Master language codes for internationalization and multilingual applications.
Language Code Standards
Different parts of the ISO 639 standard
- ISO 639-1: Two-letter codes for major languages (en, es, fr)
- ISO 639-2: Three-letter codes with more coverage (eng, spa, fra)
- ISO 639-3: Comprehensive three-letter codes for all languages
<!-- HTML lang attribute -->
<html lang="en">
<html lang="es">
<html lang="fr">
<!-- Content in multiple languages -->
<p lang="en">Hello, world!</p>
<p lang="es">Β‘Hola, mundo!</p>
<p lang="fr">Bonjour, le monde!</p>
Implementation Examples
Practical examples for web and app development
// Browser language detection
const userLanguage = navigator.language || navigator.userLanguage;
console.log(userLanguage); // "en-US", "es-ES", etc.
// Extract language code
const languageCode = userLanguage.split('-')[0]; // "en", "es"
// Language switching
function setLanguage(langCode) {
document.documentElement.lang = langCode;
loadTranslations(langCode);
}
ISO 4217 Currency Codes
Essential guide for handling currencies in financial applications.
Currency Code Structure
Understanding currency identification
- Alphabetic Code: Three-letter currency identifier (USD, EUR, GBP)
- Numeric Code: Three-digit number (840, 978, 826)
- Minor Units: Number of decimal places (2 for most currencies)
// Currency formatting with Intl.NumberFormat
const formatCurrency = (amount, currency = 'USD') => {
return new Intl.NumberFormat('en-US', {
style: 'currency',
currency: currency
}).format(amount);
};
console.log(formatCurrency(1234.56, 'USD')); // "$1,234.56"
console.log(formatCurrency(1234.56, 'EUR')); // "β¬1,234.56"
console.log(formatCurrency(1234.56, 'GBP')); // "Β£1,234.56"
Best Practices
Proven strategies for implementing ISO codes effectively in your projects.
Data Validation
Ensure data integrity with proper validation
- Always validate ISO codes against official lists
- Use case-insensitive comparisons
- Handle historical codes and changes
- Implement fallback mechanisms
// Robust validation function
function validateCountryCode(code) {
if (!code || typeof code !== 'string') {
return false;
}
const normalizedCode = code.toUpperCase().trim();
const validCodes = ['US', 'GB', 'DE', 'FR', 'JP', /* ... */];
return validCodes.includes(normalizedCode);
}
Performance Optimization
Optimize your code for better performance
- Cache ISO code data locally
- Use Set or Map for O(1) lookups
- Implement lazy loading for large datasets
- Consider using CDN for static data
Code Examples
Real-world examples and implementation patterns.
React Component Example
Country selector component with ISO codes
import React, { useState, useEffect } from 'react';
const CountrySelector = ({ onCountryChange }) => {
const [countries, setCountries] = useState([]);
const [selectedCountry, setSelectedCountry] = useState('');
useEffect(() => {
// Fetch country data from ISOCODE.CV API
fetch('https://api.isocode.cv/v1/countries')
.then(response => response.json())
.then(data => setCountries(data.countries));
}, []);
const handleChange = (event) => {
const countryCode = event.target.value;
setSelectedCountry(countryCode);
onCountryChange(countryCode);
};
return (
<select value={selectedCountry} onChange={handleChange}>
<option value="">Select a country</option>
{countries.map(country => (
<option key={country.alpha2} value={country.alpha2}>
{country.name}
</option>
))}
</select>
);
};
Python API Integration
Using ISO codes in Python applications
import requests
import json
class ISOCodeClient:
def __init__(self):
self.base_url = "https://api.isocode.cv/v1"
def get_country_by_code(self, code):
"""Get country information by ISO code"""
response = requests.get(f"{self.base_url}/countries/{code}")
return response.json() if response.status_code == 200 else None
def get_all_countries(self):
"""Get all countries"""
response = requests.get(f"{self.base_url}/countries")
return response.json()
def validate_currency_code(self, code):
"""Validate if currency code exists"""
response = requests.get(f"{self.base_url}/currencies/{code}")
return response.status_code == 200
# Usage example
client = ISOCodeClient()
country = client.get_country_by_code("US")
print(f"Country: {country['name']}, Capital: {country['capital']}")