Generator · Generic data

Nano ID

Endpoint GET /v1/nanoid

What it covers

Returns a synthetic Nano ID — a compact URL-safe identifier. `size` sets the length (default 21); `alphabet` overrides the default URL-safe 64-character set. Output is derived from the seed, so the same seed and params always reproduce the same id.

Parameters

ParameterTypeDescription
alphabetstringCustom alphabet to draw from. Default is nanoid’s URL-safe 64-character set.
countinteger1–1000Number of records to return, 1–1000 (your plan may lower this). Omitted returns a single record; set it for a batch.
edgebooleanRestrict output to valid edge cases from the rare corners of the domain.
extremebooleanReturn a correct value wrapped in a hostile encoding (untrimmed whitespace, invisible/zero-width characters, BOM, or bidi/combining marks). Homoglyphs are excluded so the value stays machine-parseable; it still validates after normalisation.
invalidbooleanReturn a deliberately invalid value that fails validation, for testing rejection paths.
seedintegerInteger seed for reproducible output: the same seed always yields the same record.
sizeinteger1–255Id length in characters (1–255). Default 21.

Response fields

FieldTypeDescription
valuestringThe generated Nano ID.

Other generic generators

Try it

Generate a live example below — every response is valid by format and entirely synthetic.