Random

Random String

0calls
Free

Whether you need to generate a secure random password, a unique token, or a simple random ID, this endpoint can meet your needs.

Overview

You can precisely control the length and character set type of the generated string, making it very flexible.

Usage Notes

Tip

Character Set Type type Details You can precisely control the generated character set through the type parameter:

  • numeric: Pure numbers (0-9)
  • lower: Lowercase letters (a-z)
  • upper: Uppercase letters (A-Z)
  • alpha: Upper and lowercase letters (a-zA-Z)
  • alphanumeric (default): Numbers and upper/lowercase letters (0-9a-zA-Z)
  • hex: Hexadecimal characters (0-9a-f)

Query parameters

length
integeroptional

The length of the string you want to generate. Valid range is 1 to 1024.

type
stringoptional

Specify the character type that makes up the string.

Response

200 / OK

Generation successful!

JSON

400 / Bad Request

Invalid request parameters.

JSON

500 / Internal Server Error

Internal server error.

JSON