ข้ามไปยังเนื้อหาหลัก

สร้าง UUID v4 เป็นชุด พร้อมรูปแบบหลายแบบ

ดูคำตอบอย่างรวดเร็ว

UUID Generator: Batch UUID v4 generation with multiple formats. 128-bit, format 8-4-4-4-12 hex; 122 random bits.

ตารางเปรียบเทียบเวอร์ชัน UUID

เวอร์ชันวิธีการสร้าง
v1Timestamp + MAC, may leak device info
v3/v5Namespace + MD5/SHA-1, deterministic
v4 ←Fully random (this tool), 122-bit entropy
v7Time-ordered + random, DB index friendly
ความน่าจะเป็นการชนกันของ UUID สุ่ม v4 ต่ำมาก: ตามการประเมินด้วยปรากฏการณ์วันเกิด ต้องสร้างประมาณ 2.71×10¹⁸ ตัวจึงจะมีความน่าจะเป็น 50% ที่จะเกิดการชนกัน — สร้าง 1 พันล้านตัวต่อวินาทีก็ต้องใช้เวลาประมาณ 85 ปี เมื่อใช้เป็นคีย์หลักของฐานข้อมูล สามารถพิจารณาใช้ v7 (เรียงตามเวลา) — v4 สุ่มจะทำให้การแทรก B-tree ไม่เป็นระเบียบ และดัชนีจะแตกเป็นชิ้นเล็กชิ้นน้อยในขนาดใหญ่

เครื่องมือนี้มีประโยชน์กับคุณไหม?

วิธีใช้งาน

  1. Paste or type content: drop code/text into the UUID Generator or fill the parameters.
  2. Choose mode/options: switch format, rules or processing as needed.
  3. Live output: results appear instantly — nothing is submitted, data stays in your browser.
  4. One-click copy: copy the output straight into your development environment.

ประเด็นสำคัญ

  • UUID Generator is a free online developer tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: Batch UUID v4 generation with multiple formats.
  • Results come with formulas and reference tables so you can verify every number.

หลักการและสูตรการคำนวณ

UUID v4 (RFC 4122)

128-bit, format 8-4-4-4-12 hex; 122 random bits
Version digit fixed at 4; variant digit ∈ {8,9,a,b}
Collision: ~50% chance only after 2.71×10¹⁸ UUIDs

คำถามที่พบบ่อย

How do I use the UUID Generator?
Open the page and fill in the input fields — results update automatically. Batch UUID v4 generation with multiple formats.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.

เครื่องมือที่เกี่ยวข้อง

ดูเครื่องมือทั้งหมด 55 รายการในหมวดหมู่นี้ →

คู่มือที่เกี่ยวข้อง

แหล่งที่มาและการอัปเดต

Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07

แหล่งข้อมูลที่น่าเชื่อถือ:

อัปเดตล่าสุด:

สูตรและเนื้อหาในหน้านี้ได้รับการตรวจสอบซ้ำโดยทีมงาน YiJianSuan มีไว้สำหรับการเรียนรู้อ้างอิงเท่านั้น สำหรับการใช้งานจริงโปรดปฏิบัติตามข้อมูลอย่างเป็นทางการ

เนื้อหานี้ได้รับการดูแลและตรวจสอบซ้ำเป็นประจำโดยทีมงานแก้ไขของ YiJianSuan ขั้นตอนการอัปเดตและตรวจสอบสามารถดูได้ที่นโยบายการแก้ไขเนื้อหา.

อ้างอิงหน้านี้: YiJianSuan. เครื่องสร้าง UUID[EB/OL]. https://www.yijiansuan.com/th/c/dev/uuid

ผลลัพธ์ที่ได้จากเครื่องมือนี้มีไว้สำหรับการอ้างอิงเท่านั้น ไม่ถือเป็นคำแนะนำทางวิชาชีพใดๆ โปรดใช้ผลการคำนวณอย่างเป็นทางการเป็นหลัก