A random string generator creates synthetic identifier, token and code-like values for test data, validation flows and import fixtures. It can return UUID, ULID, Nano ID style, alphabetic, alphanumeric, binary, hexadecimal, numeric, octal, symbol and custom-character output from one endpoint.Documentation Index
Fetch the complete documentation index at: https://docs.spotzee.com/llms.txt
Use this file to discover all available pages before exploring further.
Generate sample string data at
spotzee.com/tools/random-string-generator.
Why this matters
String fixtures look simple until a validator, parser or import job sees a value it did not expect. One hand-written ID will not test length limits, casing rules, prefixes, base-number strings, symbol handling or custom character sets. Synthetic string data gives you controlled variation. And a numeric seed lets you reproduce the same records after a failure without pinning hand-written IDs in fixture files forever. Generated strings are test data only. They are not credentials, secrets or production identifiers. Each Extended API call deducts a small per-call amount from your Spotzee credit balance. See the Spotzee pricing page for live per-tool pricing.How it works
Send the request
POST to
/generic/data/generate/string with count. The count is a string
from 1 to 100.Choose a method
Use
method=profile for expanded string records, or choose one field
method: alpha, alphanumeric, binary, fromCharacters, hexadecimal,
nanoid, numeric, octal, sample, symbol, ulid or uuid.Set string controls
Send length, casing, prefix, character-source, exclusion, leading-zero and
reference-date parameters only when the selected method supports them.
Set repeatability
Send
locale where supported and an optional numeric seed when the same
output needs to repeat in tests.Method reference
| Method | Output | Main parameters |
|---|---|---|
profile | Expanded string record | count, locale, seed, length controls, casing, prefix, characters, exclude, allowLeadingZeros, refDate |
alpha | Alphabetic string | count, locale, seed, length controls, casing, exclude |
alphanumeric | Letter and number string | count, locale, seed, length controls, casing, exclude |
binary | Binary string | count, locale, seed, length controls, prefix |
fromCharacters | String from supplied characters | count, locale, seed, length controls, characters |
hexadecimal | Hexadecimal string | count, locale, seed, length controls, casing, prefix |
nanoid | Nano ID style identifier | count, locale, seed, length controls |
numeric | Numeric string | count, locale, seed, length controls, exclude, allowLeadingZeros |
octal | Octal string | count, locale, seed, length controls, prefix |
sample | Sampled ASCII string | count, locale, seed, length controls |
symbol | Symbol string | count, locale, seed, length controls |
ulid | Sortable identifier | count, locale, seed, refDate |
uuid | UUID value | count, locale, seed |
profile when you need many string fields together. Use a field method when your form, parser or import job only expects one string shape.
What to watch for
- Count outside
1to100. One request generates up to 100 string records. For more rows, call the endpoint again and vary the seed when you need a different batch. - Exact length mixed with range. Use either exact length or a minimum/maximum length range. Do not send both.
- Length on UUID or ULID output. Length controls work with random, base, custom, Nano ID and
profileoutput, notuuidorulid. - Missing custom characters.
method=fromCharactersrequires acharactersvalue. - Prefix on the wrong method. Send
prefixonly withbinary,hexadecimal,octalorprofile. - Reference date on the wrong method. Send
refDateonly withulidorprofile, and use an ISO 8601 date-time with a time-zone offset.
FAQs
What is a random string generator?
What is a random string generator?
It creates synthetic string values for tests, fixtures and validation
workflows. Spotzee can return UUID, ULID, Nano ID style, alphabetic,
alphanumeric, binary, hexadecimal, numeric, octal, symbol and
custom-character output.
Can I use this as a UUID generator?
Can I use this as a UUID generator?
Yes. Choose
method=uuid to generate UUID values, or choose method=ulid
and method=nanoid when sortable or compact identifiers fit the test
better. The same endpoint works as a ULID generator and also supports
expanded profile records.Can I generate strings with special characters?
Can I generate strings with special characters?
Yes. Use
method=symbol for symbol-only values, or use
method=fromCharacters with your own character source. This makes the
endpoint useful as a random string generator with special characters for
validation and parser tests.Can I reproduce generated string output?
Can I reproduce generated string output?
Yes. Set a numeric seed to reproduce output for the same count, locale,
method and option values. Leave the seed blank when you want a fresh random
batch for exploratory QA.
Can I use this for Java, Python and JavaScript fixtures?
Can I use this for Java, Python and JavaScript fixtures?
Yes. The generated values are plain strings, so they can be pasted into
Java, Python, JavaScript or any test fixture format. Use seeded output when
a failing test needs repeatable IDs or tokens.
Where can I learn more about random string generation?
Where can I learn more about random string generation?
Read the random string generator
guide
for endpoint options, response fields and integration patterns. The guide
also shows where string fixture data fits beside developer fixture, word,
lorem ipsum and git generators.