Developer UUID tools
Rust UUID Generator
Generate UUIDs for Rust services, tests, seed data, and examples, then review uuid crate setup and parsing patterns.
Rust UUID generator
Create UUID values for Rust fixtures, services, migrations, and API examples.
123e4567-e89b-42d3-a456-426614174000 123e4567-e89b-42d3-a456-426614174001 123e4567-e89b-42d3-a456-426614174002 123e4567-e89b-42d3-a456-426614174003 123e4567-e89b-42d3-a456-426614174004 123e4567-e89b-42d3-a456-426614174005 123e4567-e89b-42d3-a456-426614174006 123e4567-e89b-42d3-a456-426614174007 123e4567-e89b-42d3-a456-426614174008 123e4567-e89b-42d3-a456-426614174009
Generate 1 to 1000 IDs per batch.
Generated values stay in your browser. This page does not send UUIDs or GUIDs to a server for generation.
Rust uuid crate setup
Rust projects commonly use the uuid crate. Enable the features that match the UUID versions your application needs.
[dependencies]
uuid = { version = "1", features = ["v4"] }Generate and parse UUIDs in Rust
Use Uuid::new_v4() for random UUIDs and Uuid::parse_str() for validation of external strings.
use uuid::Uuid;
fn main() {
let id = Uuid::new_v4();
let parsed = Uuid::parse_str(&id.to_string()).unwrap();
println!("{}", parsed);
}FAQ
How do I generate a UUID in Rust?+
Use the uuid crate with the v4 feature and call Uuid::new_v4().
How do I validate a UUID in Rust?+
Use Uuid::parse_str(value) and handle the Result.
Does Rust have UUIDs in the standard library?+
No. Use a maintained crate such as uuid.