---
version: "2026.1.0"
language: "en"
---
# ‎Generate‎ Password

The **Generate password** block creates a random string suitable for use as a secure password. You can customize the output by specifying the desired length and choosing whether to include uppercase letters, numbers, and symbols. This block is useful for dynamic test data generation, particularly in account creation or security-related automation flows.

Fully expanded, the **Generate password** block shows the following properties:  
![image-20251219-095228.png](https://docs.leapwork.com/__attachments/a_9682386b71334bec9d5ce6c36d3623ea36f89d3c882742cd07235be1b9ba6acc/image-20251219-095228.png?cb=78e13bbb905776ede4463224f05ba2c4)

**Note:** The screenshot on this page uses the **Elegance Design** , introduced in **2025.3**. If you are using an earlier version, your layout may look different.

## Quick-start

1. Drag **Generate password** onto the canvas.

2. Connect the block in the flow and optionally configure basic parameters such as **Length** , **Include uppercase** , **Include numbers** , and **Include symbols**.

3. Run the flow when it's ready. The generated password will be available in **Result value** for use in other blocks.

## Building block parameters

Parameters  
* **Block header:** Shows the current name of the **Generate password** block. You can rename it by double-clicking the header and typing a new title.

* **Length:** Defines the number of characters in the generated password. The default is `16`, but you can set any length based on your password policy requirements.

* **Result value:** Returns the generated password as a string. This value can be passed to other blocks that accept input values (e.g., Set Value, Type Text).

* **Include uppercase:** When enabled, the generated password will include uppercase letters (A--Z).

* **Include numbers:** When enabled, the password will include numeric digits (0--9).

* **Include symbols:** When enabled, special characters (e.g., !, @, #, $) will be included in the password.

## Resources

|                                                **Topic**                                                |                                                  **Description**                                                  |
|---------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|
| [Flows FAQ](https://docs.leapwork.com/faq/latest/leapwork-flow-faq/flows-faq.md)                                                 | Common questions about creating, running, and managing flows in Leapwork.                                         |
| [Flows Troubleshooting](https://docs.leapwork.com/troubleshooting/latest/leapwork-flow-troubleshooting/flows-troubleshooting.md) | Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork. |