Available gofakeit Patterns#

These patterns can be used with gen(), gen_batch(), json_arr(), and array(). Patterns are case-insensitive. Parameters are separated from the function name by : and from each other by ,.

# No parameters
- gen('email')

# With parameters
- gen('number:1,100')

# In a batch
- gen_batch(1000, 100, 'email')

# In a JSON array
- json_arr(1, 5, 'firstname')

# In a PostgreSQL/CockroachDB array
- array(2, 4, 'word')

Patterns are validated at config load time. A typo like gen('emial') produces a clear error instead of silently returning the literal string {emial}.

Address#

PatternDescriptionExample
addressFull address (street, city, state, zip, country){street: 37802 Port Streetborough, city: Chesapeake, state: North Carolina, zip: 18508, country: Andorra}
cityCity nameMardarville
countryCountry nameUnited States
countryabr2-letter country codeUS
latitudeLatitude coordinate41.7886
latituderange:0,90Latitude in range (default 0–90)52.31
longitudeLongitude coordinate-112.0591
longituderange:0,180Longitude in range (default 0–180)73.45
stateState nameIdaho
stateabr2-letter state abbreviationID
streetFull street (number + name + suffix)364 East Parkway
streetnameStreet nameView
streetnumberStreet number364
streetprefixDirectional prefix (N, E, SW)East
streetsuffixStreet type (Ave, St, Blvd)Parkway
timezoneTimezone nameAmerica/New_York
timezoneabv3-letter timezone abbreviationEST
timezonefullFull timezone nameEastern Standard Time
timezoneoffsetUTC offset-5
timezoneregionTimezone regionAmerica
unitBuilding unit (apt, suite)Apt 204
zipPostal code83201

Airline#

PatternDescriptionExample
airlineaircrafttypeAircraft categoryNarrow-body
airlineairplaneAircraft modelBoeing 737
airlineairportAirport nameHeathrow Airport
airlineairportiataIATA airport codeLHR
airlineflightnumberFlight numberBA142
airlinerecordlocatorBooking referenceXJDF42
airlineseatSeat assignment14A

Animals#

PatternDescriptionExample
animalAnimal nameLion
animaltypeAnimal type (mammal, bird, etc.)mammal
birdBird speciesEagle
catCat breedSiamese
dogDog breedLabrador
farmanimalFarm animalCow
petnamePet nameBuddy

Color#

PatternDescriptionExample
colorColor nameMediumSlateBlue
hexcolorHex color code#1a2b3c
nicecolorsCurated color palette[#e8d5b7, #0e2430, ...]
rgbcolorRGB color values[52, 152, 219]
safecolorWeb-safe color namefuchsia

Company#

PatternDescriptionExample
blurbCompany descriptionWe provide scalable...
bsBusiness buzzword phrasesynergize scalable mindshare
buzzwordBusiness buzzwordsynergize
companyCompany nameAcme Corp
companysuffixCompany suffix (Inc., LLC)Inc.
jobJob details{company: Google, title: Contractor, descriptor: District, level: Assurance}
jobdescriptorJob descriptorSenior
joblevelJob levelManager
jobtitleJob titleSoftware Engineer
sloganCompany sloganThink different.

Contact#

PatternDescriptionExample
emailEmail addressmarkusmoen@pagac.net
phonePhone number6136459211
phoneformattedFormatted phone number(613) 645-9211
usernameAccount usernamemarkus.moen

Data Structures#

PatternDescriptionExample
csv:,,10CSV rows (delimiter, row count)name,email\nAlice,...
fixed_width:10Fixed-width formatAlice ...
json:object,10JSON document (type, field count){"name": "..."}
mapRandom key-value map{interest: 5418, only: 2991258, fly: {shall: 1188343}}
sql:,10SQL INSERT statementsINSERT INTO ...
svg:500,500SVG image<svg>...</svg>
template:Template-driven text(from template)
xml:single,xml,record,10XML document<record>...</record>

Date & Time#

PatternDescriptionExample
date:RFC3339Date in specified format2023-07-15T14:32:07Z
daterange:2020-01-01,2025-12-31,yyyy-MM-ddDate in range with format2023-07-15
dayDay of month15
futuredateDate in the future2027-03-21T10:00:00Z
hourHour (0–23)14
minuteMinute (0–59)32
monthMonth number (1–12)7
monthstringMonth nameJuly
nanosecondNanosecond196519854
pastdateDate in the past2019-11-05T08:30:00Z
secondSecond (0–59)7
time:HH:mm:ssTime in format (default HH:mm:ss)14:32:07
timerange:08:00:00,17:00:00,HH:mm:ssTime in range with format12:45:23
weekdayWeekday nameWednesday
yearYear2023

Emoji#

PatternDescriptionExample
emojiRandom emoji🎉
emojialiasEmoji alias keyword:tada:
emojianimalAnimal emoji🐕
emojicategoryEmoji categorySmileys & Emotion
emojiclothingClothing emoji👗
emojicostumeCostume/fantasy emoji🧛
emojielectronicsElectronics emoji📱
emojifaceFace/smiley emoji😊
emojiflagFlag emoji🇺🇸
emojifoodFood emoji🍕
emojigameGame emoji🎮
emojigestureGesture emoji🤷
emojihandHand emoji👍
emojijobJob/role emoji👨‍🔬
emojilandmarkLandmark emoji🗽
emojimusicMusic emoji🎸
emojipersonPerson emoji👩
emojiplantPlant emoji🌻
emojisentence:3Sentence with emojis (N emojis)I am 😊 and 🎉 today 🌟
emojisportSport emoji
emojitagEmoji taghappy
emojitoolsTools emoji🔧
emojivehicleVehicle emoji🚗
emojiweatherWeather emoji☀️

Entertainment#

PatternDescriptionExample
bookBook details{title: Sons and Lovers, author: James Joyce, genre: Saga}
bookauthorBook authorF. Scott Fitzgerald
bookgenreBook genreFiction
booktitleBook titleThe Great Gatsby
celebrityactorCelebrity actorTom Hanks
celebritybusinessBusiness celebrityElon Musk
celebritysportSports celebritySerena Williams
gamertagGaming usernamexX_Slayer_Xx
hobbyHobby or pastimePhotography
movieMovie details{name: Sherlock Jr., genre: Music}
moviegenreMovie genreSci-Fi
movienameMovie titleThe Matrix
songSong details{name: Agora Hills, artist: Olivia Newton-John, genre: Country}
songartistSong artistQueen
songgenreSong genreRock
songnameSong titleBohemian Rhapsody

Error Messages#

PatternDescriptionExample
errorError messageunexpected EOF
errordatabaseDatabase errorconnection refused
errorgrpcgRPC errordeadline exceeded
errorhttpHTTP error404 Not Found
errorhttpclientHTTP client errortimeout awaiting...
errorhttpserverHTTP server error502 Bad Gateway
errorobjectError object{code: 500, message: service unavailable}
errorruntimeRuntime errorindex out of bounds
errorvalidationValidation errorfield required

Finance#

PatternDescriptionExample
achaccountACH bank account number586981958265
achrouting9-digit ACH routing number071000013
banknameBank nameChase
banktypeBank typeCommercial
bitcoinaddressBitcoin address1A1zP1eP5QGefi2D...
bitcoinprivatekeyBitcoin private key5HueCGU8rMjxEXx...
creditcardFull credit card details{type: UnionPay, number: 6376121963702920, exp: 10/29, cvv: 505}
creditcardcvvCredit card CVV513
creditcardexpCredit card expiry02/28
creditcardnumberCredit card number (default: any type)4111111111111111
creditcardtypeCredit card typeVisa
currencyCurrency details{short: ZAR, long: South Africa Rand}
currencylongFull currency nameUnited States Dollar
currencyshort3-letter currency codeUSD
cusipCUSIP security identifier38259P508
einEmployer Identification Number12-3456789
isinISIN security identifierUS38259P5081
price:0,1000Price in range (default 0–1000)42.99

Food & Drink#

PatternDescriptionExample
beeralcoholBeer alcohol content5.2%
beerblgBeer gravity (BLG)12.5
beerhopBeer hop varietyCascade
beeribuBeer bitterness (IBU)40
beermaltBeer malt typePale Ale
beernameBeer nameDuvel
beerstyleBeer styleIPA
beeryeastBeer yeast strainSafale US-05
breakfastBreakfast foodScrambled eggs
dessertDessert itemChocolate cake
dinnerDinner foodGrilled salmon
drinkDrinkLemonade
fruitFruitApple
lunchLunch foodCaesar salad
snackSnack itemTrail mix
vegetableVegetableBroccoli

Grammar#

PatternDescriptionExample
adjectiveGeneral adjectivebright
adjectivedemonstrativeDemonstrative adjective (this, that)this
adjectivedescriptiveDescriptive adjectivebeautiful
adjectiveindefiniteIndefinite adjectivesome
adjectiveinterrogativeInterrogative adjectivewhich
adjectivepossessivePossessive adjectiveour
adjectiveproperProper adjectiveAmerican
adjectivequantitativeQuantitative adjectiveseveral
adverbGeneral adverbquickly
adverbdegreeDegree adverbvery
adverbfrequencydefiniteDefinite frequency adverbdaily
adverbfrequencyindefiniteIndefinite frequency adverboften
adverbmannerManner adverbcarefully
adverbplacePlace adverbhere
adverbtimedefiniteDefinite time adverbyesterday
adverbtimeindefiniteIndefinite time adverbsoon
connectiveConnective wordhowever
connectivecasualCausal connectivebecause
connectivecomparativeComparative connectivesimilarly
connectivecomplaintComplaint connectiveunfortunately
connectiveexamplifyExample connectivefor instance
connectivelistingListing connectivefirstly
connectivetimeTime connectivemeanwhile
interjectionInterjectionwow
nounGeneral nountable
nounabstractAbstract nounfreedom
nouncollectiveanimalAnimal collective nounflock
nouncollectivepeoplePeople collective nouncrowd
nouncollectivethingThing collective nounbundle
nouncommonCommon nounbook
nounconcreteConcrete nounchair
nouncountableCountable nounapple
noundeterminerNoun determinerthe
nounproperProper nounLondon
noununcountableUncountable nounwater
prepositionGeneral prepositionwith
prepositioncompoundCompound prepositionin front of
prepositiondoubleDouble prepositionout of
prepositionsimpleSimple prepositionat
pronounGeneral pronounshe
pronoundemonstrativeDemonstrative pronounthese
pronounindefiniteIndefinite pronounsomeone
pronouninterrogativeInterrogative pronounwho
pronounobjectObject pronounhim
pronounpersonalPersonal pronounI
pronounpossessivePossessive pronounmine
pronounreflectiveReflexive pronounmyself
pronounrelativeRelative pronounwhich
verbGeneral verbrun
verbactionAction verbjump
verbhelpingHelping verbwould
verbintransitiveIntransitive verbsleep
verblinkingLinking verbseem
verbtransitiveTransitive verbcarry

Hacker#

PatternDescriptionExample
hackerabbreviationHacker abbreviationSQL
hackeradjectiveHacker adjectiveback-end
hackeringverbHacker -ing verbhacking
hackernounHacker nounfirewall
hackerphraseHacker phraseUse the neural TCP...
hackerverbHacker verbparse

Internet#

PatternDescriptionExample
apiuseragentAPI client user agentcurl/7.68.0
chromeuseragentChrome user agentMozilla/5.0 ... Chrome/...
domainnameDomain nameexample.com
domainsuffixDomain suffix.com
firefoxuseragentFirefox user agentMozilla/5.0 ... Firefox/...
httpmethodHTTP methodGET
httpstatuscodeHTTP status code404
httpstatuscodesimpleCommon HTTP status code200
httpversionHTTP version1.1
inputnameHTML input element namefirst_name
ipv4addressIPv4 address192.168.1.42
ipv6addressIPv6 address2001:db8::1
macaddressMAC address00:1A:2B:3C:4D:5E
operauseragentOpera user agentMozilla/5.0 ... OPR/...
safariuseragentSafari user agentMozilla/5.0 ... Safari/...
urlWeb URLhttps://www.example.com/path
urlslug:3URL-safe slug (N words, default 3)modern-web-design
useragentBrowser user agent stringMozilla/5.0 ...

Language#

PatternDescriptionExample
languageLanguage nameEnglish
languageabbreviationLanguage abbreviationen
languagebcpBCP 47 language tagen-US
programminglanguageProgramming languageGo

Minecraft#

PatternDescriptionExample
minecraftanimalMinecraft animalCow
minecraftarmorpartArmor pieceChestplate
minecraftarmortierArmor tierDiamond
minecraftbiomeMinecraft biomePlains
minecraftdyeMinecraft dye colorRed
minecraftfoodMinecraft foodBread
minecraftmobbossBoss mobEnder Dragon
minecraftmobhostileHostile mobCreeper
minecraftmobneutralNeutral mobEnderman
minecraftmobpassivePassive mobSheep
minecraftoreMinecraft oreDiamond
minecrafttoolMinecraft toolPickaxe
minecraftvillagerjobVillager jobLibrarian
minecraftvillagerlevelVillager levelJourneyman
minecraftvillagerstationVillager stationLectern
minecraftweaponMinecraft weaponSword
minecraftweatherMinecraft weatherRain
minecraftwoodMinecraft wood typeOak

Miscellaneous#

PatternDescriptionExample
email_textEmail message bodyDear Sir/Madam...
imagejpeg:500,500Random JPEG image (W×H)(binary image data)
imagepng:500,500Random PNG image (W×H)(binary image data)
loglevelLog severity levelerror
password:true,true,true,true,false,12Password (lower, upper, numeric, special, space, length)aB3$kL9mPq2x
randomint:1,2,3,4,5Random pick from int list3
randomstring:foo,bar,bazRandom pick from string listbar
randomuint:10,20,30Random pick from uint list20
shuffleints:1,2,3,4,5Shuffle int list[3,1,5,2,4]
shufflestrings:foo,bar,bazShuffle string list[baz,foo,bar]
teams:,Split people into teams(team assignments)
weighted:,Weighted random selection(selected value)

Numbers#

PatternDescriptionExample
booltrue or falsetrue
dice:2,[6,6]Dice roll (count, sides per die)[4, 2]
digitSingle digit (0–9)7
digitn:6String of N digits482910
flipacoinCoin tossHeads
float3232-bit float3.14
float32range:1,1032-bit float in range7.23
float6464-bit float3.141592653
float64range:0,164-bit float in range0.7312
hexuint:8Hex unsigned integer (N hex chars)4a3f2b1c
intRandom signed integer8294723
int8Signed 8-bit integer (−128 to 127)42
int16Signed 16-bit integer8294
int32Signed 32-bit integer829472389
int64Signed 64-bit integer8294723891234
intn:100Integer in [0, N)73
intrange:1,100Signed integer in range67
number:1,100Integer in range (default full int32 range)42
uintUnsigned integer4294967
uint8Unsigned 8-bit integer (0–255)200
uint16Unsigned 16-bit integer (0–65535)50000
uint32Unsigned 32-bit integer2948293
uint64Unsigned 64-bit integer394857239482
uintn:100Unsigned integer in [0, N)42
uintrange:0,1000Unsigned integer in range512

Person#

PatternDescriptionExample
ageAge in years32
bioRandom biographyI'm a developer from NY...
ethnicityCultural or ethnic backgroundCaucasian
firstnameGiven nameMarkus
genderGender classificationmale
lastnameFamily nameMoen
middlenameMiddle nameJames
nameFull name (first and last)Markus Moen
nameprefixTitle or honorific (Mr., Mrs., Dr.)Mr.
namesuffixSuffix (Jr., Sr., III)Jr.
personFull personal details (name, contact, etc.){first_name: Jessica, last_name: Hills, gender: female, age: 51, ssn: 961445393, ...}
ssnUS Social Security Number296-28-1925

Product#

PatternDescriptionExample
productProduct details{name: Water Dispenser, price: 91.59, material: cardboard, upc: 058601249007, ...}
productaudienceTarget audienceProfessionals
productbenefitKey product benefitTime-saving
productcategoryProduct categoryElectronics
productdescriptionProduct descriptionHigh-quality wireless...
productdimensionProduct dimensions10x5x3 inches
productfeatureProduct featureWaterproof
productisbnISBN identifier978-3-16-148410-0
productmaterialProduct materialStainless Steel
productnameProduct nameErgonomic Keyboard
productsuffixProduct model suffixPro
productupcUPC barcode012345678905
productusecaseProduct use caseOffice productivity

School#

PatternDescriptionExample
schoolSchool nameLincoln High School

Social Media#

PatternDescriptionExample
socialmediaSocial media handle/URL@johndoe

String Manipulation#

PatternDescriptionExample
generate:{firstname} {lastname}Generate from templateAlice Smith
idShort URL-safe base32 identifier01hzxq5v8k
lexify:???Replace ? with random letterskqb
numerify:###Replace # with random digits482
regex:[A-Z]{3}-[0-9]{4}String matching regexABK-7291
uuidRFC 4122 v4 UUID550e8400-e29b-41d4-a716-446655440000

Text#

PatternDescriptionExample
commentComment or remarkThis is great work!
hipsterparagraph:2,5,1,\nHipster paragraph(multi-sentence hipster text)
hipstersentence:5Hipster sentence (N words)Artisan cold-pressed vegan...
hipsterwordHipster vocabulary wordartisan
letterSingle ASCII letterg
lettern:8String of N lettersabcqwzml
loremipsumparagraph:2,5,1,\nLorem Ipsum paragraph(multi-sentence Lorem Ipsum)
loremipsumsentence:5Lorem Ipsum sentence (N words)Lorem ipsum dolor sit amet.
loremipsumwordLorem Ipsum wordlorem
markdownMarkdown-formatted text(formatted markdown)
paragraph:3,5,12,\nParagraph (sentences, words, paragraphs, separator)(multi-sentence text)
phraseShort phrasea quiet afternoon
phraseadverbAdverb phrasevery carefully
phrasenounNoun phrasethe old house
phraseprepositionPrepositional phrasein the garden
phraseverbVerb phraseruns quickly
questionQuestion sentenceWhere did you go?
quoteQuoted text"To be or not to be"
sentence:5Sentence with N words (default 5)The quick brown fox jumped.
vowelSingle vowele
wordRandom wordthemselves

Vehicle#

PatternDescriptionExample
carCar details{type: Passenger car heavy, fuel: Ethanol, transmission: Automatic, brand: Alfa Romeo, model: Lancer, year: 2014}
carfueltypeFuel typeElectric
carmakerCar manufacturerToyota
carmodelCar modelCamry
cartransmissiontypeTransmission typeAutomatic
cartypeCar typeSedan