Chuyển tới nội dung chính
Z

How to Generate a UUID (v4)

Generate a random UUID (v4) instantly in your browser — step by step, with a free UUID generator.

A UUID is a 128-bit unique identifier. Generating a random version-4 UUID takes a second:

  1. 1

    Open the UUID generator

    Open the UUID generator tool.

  2. 2

    Generate

    A version-4 (random) UUID is produced instantly. Generate as many as you need.

  3. 3

    Copy it

    Copy the UUID and paste it into your code, database or config.

Do it now

Câu hỏi thường gặp

Tôi có thể dùng những dot-path nào?

Bất kỳ gì nằm dưới <code class="font-mono text-xs">faker.*</code> — ví dụ <code class="font-mono text-xs">person.firstName</code>, <code class="font-mono text-xs">company.name</code>, <code class="font-mono text-xs">finance.iban</code>, <code class="font-mono text-xs">date.past</code>. Xem tài liệu faker.js để có danh sách đầy đủ.

Tôi có thể truyền tham số không?

Có — đặt đối tượng tham số trong dấu ngoặc đơn. Ví dụ: <code class="font-mono text-xs">number.int({min:1,max:100})</code> hoặc <code class="font-mono text-xs">helpers.arrayElement(["a","b","c"])</code>.

Dữ liệu này lấy từ đâu?

Mọi thứ chạy trong trình duyệt của bạn — faker.js tạo dữ liệu cục bộ, không có lệnh gọi API nào. Schema và dữ liệu của bạn không bao giờ rời khỏi thiết bị.