โ† Back to Tools

๐Ÿ”ง XML GUID Formatter

Formats both clean hex strings and messy hyphenated ones to standard GUID format (preserves original case)

๐ŸŽฏ Select Additional Elements to Process (Default: Unchecked)

๐Ÿ”„ Processing large file...

โ„น๏ธ How to use:

  1. Paste your XML content in the input area above
  2. Check any additional elements you want to process (optional)
  3. Click "Format GUIDs" to process the XML
  4. Copy the formatted result using "Copy Output" button
  5. Use "Clear All" to reset both input and output

๐Ÿ”ง Processing Logic:

  • Step 1: Detects hex strings (with or without hyphens)
  • Step 2: Removes ALL existing hyphens from detected strings
  • Step 3: Validates if it's exactly 32 hex characters
  • Step 4: Formats with proper GUID structure (8-4-4-4-12)
  • Preserves: Original case (uppercase/lowercase)
  • Handles: Both clean hex strings and messy hyphenated ones

๐Ÿ“‹ Processed Elements:

  • Always Processed:
  • <level rule="" id=""> - Formats both rule and id attributes
  • <p id=""> - Formats id attribute
  • <removed_level id=""> - Formats id attribute
  • Optional (Check to Enable):
  • <document id=""> - Formats id attribute
  • <issuingbody id=""> - Formats id attribute
  • <countryofissue id=""> - Formats id attribute
  • <UpdateGUID> - Formats content between tags
Before (clean hex string):
7A172069F3404E82BB72B571EB49C06A
After (formatted):
7A172069-F340-4E82-BB72-B571EB49C06A
Before (with hyphens):
B2-EBF-FC01-DD54-4C78-D81F5B-3824-3A3-51
After (cleaned & formatted):
B2EBFFC0-1DD5-44C7-8D81-F5B38243A351
Before (messy pattern):
F3-929B3FB-EA-843-E4-90359-5-FB8-8EF1C-54
After (cleaned & formatted):
F3929B3F-BEA8-43E4-9035-95FB88EF1C54