Skip to Content
🎲 Welcome to RandBox - Powerful JavaScript Random Data Generation Library! Learn More

zip

// usage randBox.zip() randBox.zip({plusfour: true})

Generate a random (U.S.) zip code.

randBox.zip(); => '90210'

Can optionally specify that it ought to return a Zip+4 :

randBox.zip({plusfour: true}); => '01035-1838'