Free random code generator

Examples

Back to the generator

Random character sets, also known as codes, can be used for various purposes. Most commonly, they are used to mark something in order to uniquely identify it, for example product packaging, discount coupons or serial numbers. They can also be useful as passwords, one-time access codes or test data. Below you will find some examples of their use, along with sample code formats that can be used for this purpose. Each example allows you to quickly generate a sample set of codes and go to the generator immediately configured for a given example in order to adjust its configuration and generate more codes.

Basic codes

8 characters long random string (letters and digits only)

One of the most basic examples of generated codes may be a random string of characters consisting of letters and numbers. Below is an example of several 8 character codes.

cKN8YeRi L91yzrt7 6BeZSj4H Uj0WaOI3 160h5JrT tJ7I2Ksf 0pEqNXDa tPnZwdzw c0UbgCpD FWDM5lic
Open generator using this configuration
6 characters long random string (capitals only)

In the case of strings of characters containing upper and lower case letters, reading them is often difficult, for this reason, if the code is to be read by a human, let alone rewritten, it is recommended to use a uniform character size, e.g. using only upper case letters. Below is an example of several such 6 character codes.

FUUIAO DZJDYN TMRMLY LWSRYZ REJZBG CNXNQU WRJXFN TZOTDN NUEEXH IKQNOB
Open generator using this configuration
10 characters long random string (all ASCII)

Sometimes it may be necessary to generate strings of characters consisting of all printable ASCII characters (letters, numbers and special characters). The following example shows in simple way how multiple patterns can be used at once.

Ub=)IPMK[< t8X,2v-S`\ bI=<agD_B" D>R:addfgn OKl7GhvZHC 9fT-g?om,$ "DH|ZyZ%@t PmR0MgW$,} qd"d7wRC4> 9o.i4j^s[P
Open generator using this configuration
Strong password

Strong passwords should, above all, be long. OWASP ASVS 4.0 recommends that they be at least 12 characters long, which will make breaking them relatively unprofitable. It's a good idea not to rely on minimum requirements, which is why we recommend using at least 16-character, random passwords using letters, numbers and special characters.

7G~/[{#I+[<Lr5MR 29AU`syCHn8f?i'O ous-]8cIi]t/u_L3 ZE7:][z4%0fl~Nb( W>8~PCzw?%C[g8Qz !_+c211fbg[]h}@9
Open generator using this configuration
Pronounceable codes

If codes are to be transcribed or dictated, it is a good idea to structure them in a way that is easy to read and pronounce. For this purpose, a construction with alternating vowels and consonants can be used.

IFASATEC IBOHIFOV EXAVOFOZ OJUPAKUN YRASYHYN AMEJIFAV YDYTOMIX OWAMEJIS ODOXOQES YVYNEGES
Open generator using this configuration

E-commerce & Promotion

Serial number

Serial numbers can take various formats. One of the most popular is a set of four or more fixed-length alphanumeric blocks separated by dashes. This structure allows the code to be long and at the same time easy to read and rewrite.

HCLH-CWRF-CK3P3-RX6Y L6WK-NXCF-3YKK6-CEMW YP3P-MLLC-K6CP9-WLL9 F6NW-6HPK-CC3PC-HP9R YHHY-9LNE-FRXYL-HCH6 KLRE-WWCL-R6KWE-XEMN 9CXY-X9K9-66H3Y-KPCR 39M6-K3HY-EKE3F-FY9M PPR9-3NCR-3HLM6-P9ME 393P-9NE3-PR6R3-9LYE
Open generator using this configuration
Giftcard / Voucher codes

When you want to give someone a gift card or voucher, it is a good idea to have it marked with a unique code that will allow you to easily verify whether the voucher is valid or has not already been used. Such codes should be relatively short so that they can be dictated quickly, yet random enough so that someone cannot guess the value of another voucher that is not theirs.

153-NMW-886 634-CYT-761 737-WYO-518 619-UAF-506 773-WSM-792 657-DCS-494 227-XVR-101 252-SKO-666 024-CDH-642 212-UOX-854
Country prefixed codes

If you intend to distribute the codes worldwide, and at the same time want to be able to easily identify which country a code originates from, you can add the country code to each code as a prefix. For example, for codes for the USA, add the prefix US-, for England UK-, and for Germany DE-, etc.

US-6PRW6PR US-CYYRCF3 US-CX6XLCX US-LFLYMWF US-HLYLXFK US-WYN6MKW US-93NPKP6 US-W3HCEX3 US-K63FWYC US-C3WP9YX
Open generator using this configuration

Test data

All permutations of given string

All permutations are, in other words, all possible combinations of words composed of the characters of the original word. If you want to generate all permutations of a word, e.g. ABCD in advanced mode, enter this word in the field "Set of characters that can appear in the code", and then set "Single code length" to the length of the entered word (in this case 4), and "Number of codes to generate" to the number of possible combinations that can be obtained from the selected generator configuration (in this case 256). The exact number of possible combinations can be found in the description of the field "Set of characters that can appear in the code".

DACD DAAB DDBD BCAA DDDA DCAD DCCA AACC ADAC ACDA
Open generator using this configuration
Random IPv4 address

Every computer on the Internet has its own IP address that uniquely identifies it. The most common way to write an IPv4 address is to represent it as 4 numbers from 0 to 255 separated by dots. The list of IPv4 addresses can be useful when testing various types of security or access control mechanisms.

43.122.42.216 61.234.95.226 86.145.18.228 21.210.41.225 70.110.89.101 38.134.43.242 29.221.29.144 18.131.41.222 88.118.25.208 96.235.45.108
Open generator using this configuration
Random date

When testing systems in which resources are marked with a date, a set of random dates may be useful. One of the most popular date formats in IT systems is the YYYY-MM-DD format, which means that at the beginning there is a four-digit year, then after a dash a two-digit month number with a leading zero, and then after a dash the day of the month also with a leading zero.

2025-05-23 2028-07-12 2029-08-13 2023-05-23 2027-06-06 2024-02-14 2026-01-18 2020-07-03 2026-08-23 2029-02-14
Random Unix timestamp

Dates and times in IT systems are often written in numerical form using the so-called Unix timestamp. A Unix timestamp is the number of seconds since January 1, 1970 UTC. Unix timestamps are a digital standard for denoting an exact, universal time.

1877825793 1771580559 1654834096 1679551801 1800373030 1737805240 1569463304 1789259394 1869934357 1884828282
Open generator using this configuration
Random md5 hash

The MD5 message-digest algorithm is a widely used hash function producing a 128-bit hash value. For greater readability the 128-bit (16-byte) MD5 hashes are typically represented as a sequence of 32 hexadecimal digits.

d5091d3ca92ac14f655de0c0de534878 bcbf9f504ef31d40c0ec6aa15ac9742e 50a00194a501e3620f83763f66c3c131 b12d8f9fa9af8a71c26689b5883ffd1c 945d1965646ac1fcb8b9229b8d42f92c 846c37cbb2a307ee122b6bfa27b23ace 539807f0ba55b3c52f2cb1e63441a3b6 3042c9740a72614246db5b0e04d9ab85 0bc0afca1e22cb1d5464c229bb7513b5 5c86e48a7b2415b94a3aa4fe2f2c5ae3
Open generator using this configuration
Random sha1 hash

SHA-1 (Secure Hash Algorithm 1) is a hash function which takes an input and produces a 160-bit hash value known as a message digest. For greater readability the 160-bit (20-byte) hashes are typically represented as 40 hexadecimal digits.

d628a61c93757d0cb3f9d3dba35a0e471bc35d81 6341b38542710e3b5accf4293e39006f754dec57 5205db77f75bc69b3cbf1a0ca3dafd703b187a14 ff26714585ab23c87344880a46706d25fd98aba1 1a4e7f41ff9e19621cd99771cf582f46c5a0a93d
Open generator using this configuration
Random application version number

A very common practice when developing software is to mark its successive releases or versions with a unique code, the so-called version number. This makes it easy to determine whether the software is up to date (has the latest version number) and to refer to a specific release when problems or bugs are reported. One of the most common ways of numbering software versions is semantic versioning, the so-called "SemVer". The standard version number must take the form X.Y.Z, where X, Y and Z are non-negative integers and must not contain leading zeros. X is the major version, Y is the minor version and Z is the patch version. Each component must grow numerically. For example: 2.19.0 → 2.20.0 → 2.20.1 → 2.21.0.

v0.88.11 v9.35.45 v1.90.64 v1.47.22 v8.52.80 v2.35.73 v2.78.26 v2.63.29 v3.62.80 v9.40.69
Open generator using this configuration
Random car tire size

Car tires are described using a special code, for example 195/65R15 where 195 is the tire width given in millimeters, then there is the / sign followed by the tire profile which determines the height of the tire sidewall, given as a percentage of the width (here 65% from 195 equals 126.75 mm). Then there is the tire type designation in the form of a letter, here R stands for radial tire. The last element is a number indicating the size of the rim that the tire fits on, given in inches, in this example the tire fits a 15-inch rim.

165/70R16 105/95R15 165/65R17 155/70R15 285/60R14 155/90R18 185/65R18 285/60R16 165/95R14 135/65R13
Open generator using this configuration

Other fancy examples

Male fantasy character name 🧙‍♂️

Are you looking for a name for a new male hero of a fantasy novel, or maybe you are starting a new RPG campaign and don't know what to name your companion on a journey to a dungeon full of goblins and demons? You can use our generator to create dozens of sample male names and choose the one that suits you best.

Odukik Ygapod Imozak Exybyl Amehyr Uzojod Utugad Utyhim Akidok Izobid
Open generator using this configuration
Female fantasy character name 🧝‍♀️

Are you starting a new RPG campaign and don't know what to name your companion on a journey to a dungeon full of trolls and dragons or maybe looking for a fantasy novel female hero name? You can use our generator to create dozens of sample female names and choose the one that suits you best.

Isyhi Ukume Akizi Asere Yduze Ijufa Axiha Ylyje Yzype Uheri
Open generator using this configuration
Simple decision maker

You have no idea what decision to make, but you can answer it with Yes or No? You can use the generator to do it for you! Ask a question and click the button below and you will receive a file with the answer to your question where Y means Yes and N means No.

Y N
Open generator using this configuration