# Nano ID generator

Generate short, URL-safe random IDs of any length, optionally from your own alphabet.

- Endpoint: `POST https://setget.net/v1/tools/nanoid` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `nanoid`
- Page: https://setget.net/tools/nanoid

## Inputs

- `size` (optional, integer, default `21`, range 1..256): Characters per ID.
- `count` (optional, integer, default `1`, range 1..100): How many to generate.
- `alphabet` (optional, string): Characters to draw from, each listed once. Left out, A-Z, a-z, 0-9, "_" and "-" are used.

## Example 1: One standard 21-character ID

```json
{"input":{}}
```

## Example 2: Five short hex IDs

```json
{"input":{"size":10,"count":5,"alphabet":"0123456789abcdef"}}
```

**How likely is a collision?** With the default 21 characters there are 126 random bits, about the same as a random UUID. Shorter IDs or smaller alphabets collide sooner; "entropy_bits" in the result shows the strength.

**Is the output evenly random?** Yes. Each character is drawn from the operating system's secure random source without modulo bias.
