GenerateRandomSearch

Locale Code Picker

Picks a real BCP 47 locale code — language plus region, like fr-CA or zh-TW — a quick way to spot-check internationalisation, formatting or translation-fallback behaviour.

What you'll get

This generator draws from a hand-checked list of 22 entries. Here is a spread of 6 of them, so you can see the style before you generate:

  • en-US — English (United States)
  • fr-FR — French (France)
  • es-MX — Spanish (Mexico)
  • nl-NL — Dutch (Netherlands)
  • ko-KR — Korean (South Korea)
  • ar-SA — Arabic (Saudi Arabia)

A fixed sample of the list, not a live draw — your own results are picked at random from all 22, without repeating until the list runs out. BCP 47 / Unicode CLDR locale identifiers (public standard, well-known codes).. Last reviewed 2026-07-18.

How to use this tool

  1. Press generate for a locale.
  2. Generate again for a different one.

Common use cases

  • Testing internationalisation/localisation code
  • Populating a locale-picker demo
  • Documentation examples

Practical tips

  • Test a right-to-left locale as well as left-to-right ones; layout problems only appear there.
  • Remember that a locale sets number and date formatting as well as language — a decimal comma breaks a surprising amount of parsing.

Entries are chosen with your browser's cryptographic random number generator, so every entry on the list is equally likely. How Generate Random works.