{"id":462,"date":"2026-11-05T19:05:29","date_gmt":"2026-11-05T19:05:29","guid":{"rendered":"https:\/\/easyextract.online\/blog\/how-to-extract-uuids-and-guids-from-text\/"},"modified":"2026-11-05T19:05:29","modified_gmt":"2026-11-05T19:05:29","slug":"how-to-extract-uuids-and-guids-from-text","status":"publish","type":"post","link":"https:\/\/easyextract.online\/blog\/how-to-extract-uuids-and-guids-from-text\/","title":{"rendered":"How to Extract UUIDs &#038; GUIDs from Text, Logs &#038; SQL Dumps Online"},"content":{"rendered":"<p><strong>To extract all 128-bit UUIDs (Universally Unique Identifiers) and Microsoft GUIDs (`8-4-4-4-12` canonical hexadecimal format) from application logs, stack traces, or SQL dumps, scan the text against RFC 9562 \/ RFC 4122 bit-layout patterns directly in your browser using the <a href=\"https:\/\/easyextract.online\/uuid-extractor\/\">EasyExtract UUID &amp; GUID Extractor<\/a>. It captures UUIDv1 through UUIDv8 (including time-ordered UUIDv7 and Nil UUIDs), normalizes casing, and exports deduplicated lists or SQL-ready lists 100% locally in browser RAM with zero server uploads.<\/strong><\/p>\n<p>In distributed microservices, PostgreSQL databases, AWS CloudWatch logs, Kubernetes pod events, and Microsoft Azure Active Directory (Entra ID), every entity\u2014from a user account or payment transaction to an OpenTelemetry trace span\u2014is identified by a 36-character **UUID** like `550e8400-e29b-41d4-a716-446655440000`. When debugging a production incident, engineers frequently need to pull hundreds of transaction UUIDs out of raw log lines to run a batch SQL query (`WHERE id IN (&#8230;)`) without manually copying and pasting each ID.<\/p>\n<p>This guide explains the structure of RFC 9562 UUIDs (including the version and variant nibbles) and shows you how to extract and deduplicate UUIDs\/GUIDs in seconds.<\/p>\n<h2>Anatomy of a 128-Bit UUID \/ GUID (RFC 4122 &amp; RFC 9562)<\/h2>\n<p>Standardized by the IETF in <strong>RFC 4122<\/strong> and updated in May 2024 by <strong>RFC 9562<\/strong> (which introduced time-ordered **UUIDv7** for high-performance database B-tree indexing), a canonical UUID consists of 32 hexadecimal digits arranged in 5 hyphen-separated groups (`8-4-4-4-12`, 36 characters total):<\/p>\n<pre><code>xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx\n   8      4    4    4        12<\/code><\/pre>\n<ul>\n<li><strong>The `M` Nibble (13th Hex Digit \u2014 Version):<\/strong> Indicates the UUID generation algorithm:\n<ul>\n<li><code>1<\/code>: **UUIDv1** (Gregorian timestamp + IEEE 802 MAC address).<\/li>\n<li><code>4<\/code>: **UUIDv4** (122 bits of cryptographically random entropy \u2014 most common in web APIs).<\/li>\n<li><code>5<\/code>: **UUIDv5** (SHA-1 namespace hash).<\/li>\n<li><code>7<\/code>: **UUIDv7** (48-bit Unix epoch millisecond timestamp + random bits \u2014 modern database primary key standard).<\/li>\n<\/ul>\n<\/li>\n<li><strong>The `N` Nibble (17th Hex Digit \u2014 Variant):<\/strong> For standard RFC 4122\/9562 UUIDs, the top two bits are `10`, meaning `N` is always **`8`, `9`, `a`, or `b`** (though Microsoft COM\/Registry GUIDs and legacy systems occasionally use `c`\/`d` or arbitrary hex nibbles).<\/li>\n<\/ul>\n<h2>Method 1: Extract &amp; Deduplicate UUIDs Online in Your Browser (Zero Uploads)<\/h2>\n<p>To pull every UUID or GUID out of a log file, JSON dump, or CSV snippet without exposing production IDs to a third-party server:<\/p>\n<ol>\n<li>Open the free <a href=\"https:\/\/easyextract.online\/uuid-extractor\/\"><strong>UUID &amp; GUID Extractor<\/strong><\/a> on EasyExtract.<\/li>\n<li>Paste your log lines, SQL query output, or JSON payload into the text box.<\/li>\n<li><strong>Instant Extraction &amp; Normalization:<\/strong> The extractor captures standard `8-4-4-4-12` UUIDs (including Microsoft `{&#8230;}` brace-wrapped GUIDs), lets you normalize to lowercase or uppercase, and removes duplicates in one click.<\/li>\n<li>Copy the extracted UUIDs to your clipboard or download them as a `.txt` or `.csv` file.<\/li>\n<\/ol>\n<table>\n<thead>\n<tr>\n<th>Identifier Type<\/th>\n<th>Character Length \/ Pattern<\/th>\n<th>Recommended EasyExtract Tool<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>UUID \/ GUID (v1\u2013v8, Nil)<\/strong><\/td>\n<td>36 chars (`8-4-4-4-12` hex with hyphens)<\/td>\n<td><a href=\"https:\/\/easyextract.online\/uuid-extractor\/\"><strong>UUID &amp; GUID Extractor<\/strong><\/a><\/td>\n<\/tr>\n<tr>\n<td><strong>Cryptographic Hashes (MD5, SHA-1, SHA-256)<\/strong><\/td>\n<td>32, 40, or 64 contiguous hex characters<\/td>\n<td><a href=\"https:\/\/easyextract.online\/hash-extractor\/\"><strong>MD5 \/ SHA Hash Extractor<\/strong><\/a><\/td>\n<\/tr>\n<tr>\n<td><strong>JSON Web Tokens (JWT)<\/strong><\/td>\n<td>`eyJ&#8230;` three-part Base64URL string<\/td>\n<td><a href=\"https:\/\/easyextract.online\/jwt-extractor\/\"><strong>JWT Token Extractor &amp; Decoder<\/strong><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Method 2: Regex Patterns for UUIDs (`grep`, Python &amp; JavaScript)<\/h2>\n<p>Depending on whether you want to match **strictly RFC-compliant UUIDs** or **any 8-4-4-4-12 GUID**, use one of these two patterns:<\/p>\n<h3>1. General 8-4-4-4-12 UUID \/ Microsoft GUID Regex (Recommended for Logs)<\/h3>\n<pre><code>\\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}\\b<\/code><\/pre>\n<h3>2. Strict RFC 9562 Version 1\u20138 + Variant Regex<\/h3>\n<pre><code>\\b[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}\\b<\/code><\/pre>\n<h2>Frequently Asked Questions<\/h2>\n<h3>What is the difference between a UUID and a GUID?<\/h3>\n<p>Structurally, they are identical 128-bit numbers formatted as `8-4-4-4-12` hexadecimal strings. **UUID** (Universally Unique Identifier) is the open IETF\/ISO standard term (RFC 4122 \/ RFC 9562), while **GUID** (Globally Unique Identifier) is Microsoft&#8217;s term used across Windows Registry keys, `.NET` (`System.Guid`), SQL Server (`uniqueidentifier`), and Active Directory\u2014often wrapped in curly braces like `{550E8400-E29B-41D4-A716-446655440000}`.<\/p>\n<h3>Does the extractor match the Nil UUID (`00000000-0000-0000-0000-000000000000`)?<\/h3>\n<p>Yes. Both the Nil UUID (all zeros) and the Max UUID (`ffffffff-ffff-ffff-ffff-ffffffffffff` defined in RFC 9562) are recognized.<\/p>\n<h3>Are my production logs uploaded to any server?<\/h3>\n<p>Never. All extraction happens 100% locally in your browser&#8217;s JavaScript runtime.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To extract all 128-bit UUIDs (Universally Unique Identifiers) and Microsoft GUIDs (`8-4-4-4-12` canonical hexadecimal format) from application logs, stack traces, or SQL dumps, scan the text against RFC 9562 \/ RFC 4122 bit-layout patterns\u2026<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Extract UUIDs & GUIDs from Text & Logs Online (v1, v4, v7)","description":"Extract RFC 9562 \/ RFC 4122 UUIDs and Microsoft GUIDs (8-4-4-4-12) from application logs, JSON payloads, and SQL dumps in your browser with zero uploads."},"footnotes":""},"categories":[3],"tags":[],"class_list":["post-462","post","type-post","status-publish","format-standard","hentry","category-guides"],"_links":{"self":[{"href":"https:\/\/easyextract.online\/blog\/wp-json\/wp\/v2\/posts\/462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easyextract.online\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easyextract.online\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easyextract.online\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easyextract.online\/blog\/wp-json\/wp\/v2\/comments?post=462"}],"version-history":[{"count":0,"href":"https:\/\/easyextract.online\/blog\/wp-json\/wp\/v2\/posts\/462\/revisions"}],"wp:attachment":[{"href":"https:\/\/easyextract.online\/blog\/wp-json\/wp\/v2\/media?parent=462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easyextract.online\/blog\/wp-json\/wp\/v2\/categories?post=462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easyextract.online\/blog\/wp-json\/wp\/v2\/tags?post=462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}