{
    "slug": "random-string-generator",
    "name": "Random String Generator",
    "url": "https://directory.milunir.com/developer-tools/passwords-and-hashes/random-string-generator/",
    "description": "Make random strings in letters, digits, hex or with special characters, or blocked serial numbers like ABCDE-FGH23, with entropy in bits shown.",
    "inputs": {
        "type": "object",
        "properties": {
            "mode": {
                "type": "string",
                "enum": [
                    "random",
                    "serial"
                ],
                "description": "Mode",
                "default": "random"
            },
            "length": {
                "type": "integer",
                "minimum": 1,
                "maximum": 256,
                "description": "Length",
                "default": 32
            },
            "count": {
                "type": "integer",
                "minimum": 1,
                "maximum": 50,
                "description": "How many",
                "default": 5
            },
            "charset": {
                "type": "string",
                "enum": [
                    "alnum",
                    "letters",
                    "hex",
                    "digits"
                ],
                "description": "Characters",
                "default": "alnum"
            },
            "symbols": {
                "type": "boolean",
                "description": "Add special characters (!@#…)"
            },
            "prefix": {
                "type": "string",
                "description": "Prefix. Optional product or batch code put before the random part."
            },
            "groups": {
                "type": "integer",
                "minimum": 1,
                "maximum": 8,
                "description": "Blocks",
                "default": 4
            },
            "group_size": {
                "type": "integer",
                "minimum": 2,
                "maximum": 10,
                "description": "Characters per block",
                "default": 5
            },
            "serial_count": {
                "type": "integer",
                "minimum": 1,
                "maximum": 50,
                "description": "How many",
                "default": 5
            }
        },
        "additionalProperties": false
    },
    "outputs": [
        {
            "key": "primary",
            "label": "Generated value"
        },
        {
            "key": "entropy",
            "label": "Entropy (bits)"
        },
        {
            "key": "pool",
            "label": "Characters to choose from"
        },
        {
            "key": "chars",
            "label": "Random characters"
        }
    ],
    "modes": [
        {
            "id": "random",
            "label": "Random string",
            "inputs": [
                "length",
                "count",
                "charset",
                "symbols"
            ]
        },
        {
            "id": "serial",
            "label": "Serial number",
            "inputs": [
                "prefix",
                "groups",
                "group_size",
                "serial_count"
            ]
        }
    ],
    "feed": null,
    "endpoint": "https://api.tools-directory.workers.dev/v1/tools/random-string-generator",
    "mcp_tool": "random_string_generator",
    "example": {
        "inputs": {
            "mode": "random",
            "length": 32,
            "count": 5,
            "charset": "alnum",
            "symbols": false
        },
        "output": "Generated value: mAg88Rlsa9ceIZPJeEYvRLCakxSMohvL\nEntropy (bits): 190.5\nCharacters to choose from: 62"
    }
}