---
title: "UUID Generator | iamthana"
description: "สร้างรหัส UUID เวอร์ชัน 1, 4, 6 และ 7 ครั้งละไม่เกิน 1,000 รายการ เลือกตัวพิมพ์ใหญ่หรือตัดขีดคั่นได้"
canonical_url: "https://iamthana.com/tools/uuid-generator"
meta:
  "og:description": "สร้างรหัส UUID เวอร์ชัน 1, 4, 6 และ 7 ครั้งละไม่เกิน 1,000 รายการ เลือกตัวพิมพ์ใหญ่หรือตัดขีดคั่นได้"
  "og:image": "https://iamthana.com/_og/s/o_75187ca9c8ff6788.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "UUID Generator | iamthana"
  "twitter:image": "https://iamthana.com/_og/s/o_75187ca9c8ff6788.png"
---

> Index of every page on this site: [llms.txt](https://iamthana.com/llms.txt)

# **UUID Generator**

สร้างรหัส UUID เวอร์ชัน 1, 4, 6 และ 7 ครั้งละไม่เกิน 1,000 รายการ เลือกตัวพิมพ์ใหญ่หรือตัดขีดคั่นได้

เวอร์ชัน

สุ่ม 122 บิต อีก 6 บิตเก็บเวอร์ชันกับ variant

**จำนวน**1 ถึง 1,000

รูปแบบ

ตัวพิมพ์ใหญ่ใส่ขีดคั่น (-)

รายการ UUID จะขึ้นที่นี่

## **เลือกเวอร์ชันไหน**

v4 เหมาะกับรหัสที่ทำหน้าที่แค่แยกรายการออกจากกัน ถ้าใช้เป็น primary key ในฐานข้อมูล v7 มักเหมาะกว่า เพราะรหัสใหม่เรียงต่อท้ายรหัสเก่า index จึงไม่กระจายเหมือนรหัสสุ่มของ v4

v1 กับ v6 นับเวลาทีละ 100 นาโนวินาทีตั้งแต่ 15 ตุลาคม 1582 v6 คือ v1 ที่เรียงบิตของเวลาใหม่ให้เรียงตามลำดับเวลาได้

## **ข้อควรรู้**

v1, v6 และ v7 มีเวลาสร้างฝังอยู่ในรหัส ถ้าอยากให้อ่านเวลาไม่ได้ ให้ใช้ v4

RFC 9562 ระบุว่าอย่าถือว่า UUID เดาไม่ได้ และห้ามใช้เป็นโทเค็นสิทธิ์เข้าถึง โทเค็นกับรหัสลับควรสร้างด้วยตัวสร้างค่าสุ่มที่ออกแบบสำหรับงานนั้น

RFC 9562 อนุญาตให้เขียน UUID เป็นตัวพิมพ์เล็กหรือใหญ่ คั่นด้วยขีด ตัวเลือกตัวพิมพ์ใหญ่กับการตัดขีดออกเปลี่ยนแค่การเขียน ค่าของรหัสเท่าเดิม

## **เครื่องมืออื่น ๆ**

- [Developer<h3>**สร้าง QR Code ฟรี ไม่หมดอายุ (QR Code Generator)**</h3>

  สร้าง QR Code จากลิงก์หรือข้อความ ดาวน์โหลดเป็น PNG หรือ SVG ได้ฟรี รหัสเก็บข้อมูลไว้ในตัวเองจึงไม่หมดอายุ](https://iamthana.com/tools/qr-generator)
- [Developer

  \*/15 9-17 \* \* 1-5

  ทุก 15 นาที 09:00 ถึง 17:45 จันทร์ถึงศุกร์<h3>**Cron Job Generator**</h3>

  สร้างนิพจน์ cron สำหรับตั้งเวลางานอัตโนมัติ ตั้งทีละช่องหรือพิมพ์เอง พร้อมคำอธิบายเป็นภาษาไทยและรอบที่จะรันถัดไป](https://iamthana.com/tools/cron-generator)
- [Developer

  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore<h3>**Lorem Ipsum Generator**</h3>

  สร้างข้อความ Lorem Ipsum สำหรับใช้เป็นตัวยึดตำแหน่งในการออกแบบเว็บไซต์และแอปพลิเคชัน](https://iamthana.com/tools/lorem-ipsum)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://iamthana.com/#website","@type":"WebSite","inLanguage":"th-TH","name":"iamthana","url":"https://iamthana.com/","publisher":{"@id":"https://iamthana.com/#identity"},"workTranslation":[]},{"@id":"https://iamthana.com/tools/uuid-generator#webpage","@type":"WebPage","description":"สร้างรหัส UUID เวอร์ชัน 1, 4, 6 และ 7 ครั้งละไม่เกิน 1,000 รายการ เลือกตัวพิมพ์ใหญ่หรือตัดขีดคั่นได้","name":"UUID Generator","url":"https://iamthana.com/tools/uuid-generator","breadcrumb":{"@id":"https://iamthana.com/tools/uuid-generator#breadcrumb"},"isPartOf":{"@id":"https://iamthana.com/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://iamthana.com/tools/uuid-generator"]}]},{"@id":"https://iamthana.com/#identity","@type":"Person","alternateName":"Thana Tingprasom","name":"iamthana","url":"https://iamthana.com","knowsAbout":["AI","SEO","Development","Homelab","Software Development","Python","Ubuntu","Docker"],"sameAs":["https://github.com/iamthana","https://www.linkedin.com/in/thana-tingprasom/","https://www.facebook.com/kttkook"]},{"@id":"https://iamthana.com/tools/uuid-generator#webapplication","@type":"WebApplication","applicationCategory":"UtilityApplication","applicationSubCategory":"Developer","browserRequirements":"Requires JavaScript","description":"สร้างรหัส UUID เวอร์ชัน 1, 4, 6 และ 7 ครั้งละไม่เกิน 1,000 รายการ เลือกตัวพิมพ์ใหญ่หรือตัดขีดคั่นได้","inLanguage":"th-TH","isAccessibleForFree":true,"name":"UUID Generator","operatingSystem":"Any","url":"https://iamthana.com/tools/uuid-generator","author":{"@id":"https://iamthana.com/#identity"},"offers":{"@type":"Offer","price":"0","priceCurrency":"THB"}},{"@id":"https://iamthana.com/tools/uuid-generator#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://iamthana.com","position":1},{"@type":"ListItem","name":"Tools","item":"https://iamthana.com/tools","position":2},{"@type":"ListItem","name":"UUID Generator","position":3}]}]}
```

## Sitemap

See the full [sitemap](https://iamthana.com/sitemap.md) for all pages.
