Dubai Customs & Dubai Trade Tool • Instant Free Export

Dubai Trade E-Mirsal II Invoice Converter

Convert Excel supplier invoices into 100% compliant Dubai Customs TXT & XML declaration files with instant HS code validation

1

Invoice & Declaration Header

Dubai Customs (BOE) Aligned

📋 Copy & Paste Multi-Line Table Directly from Excel / Google Sheets

Click here and press Ctrl+V (or Cmd+V) to instantly ingest 10 to 500+ invoice lines.

2 Invoice Line Items 2 Lines

# Item Description * HS Code (8/12-digit) * Origin Qty UOM Unit Price Total Price Net Wt (kg) Gross Wt (kg) Pkg Act
Live HS Tariff & UOM Verification active
Declaration Summary Verified 100% Clean
0.00
AED Total Value
Total Weight
0.00 kg
0.00 kg net
Invoice Items
0 lines
0 packages
Dubai Trade Compliance Guarantee: Formatted strictly to Dubai Customs e-Mirsal II flat file specifications with standard H, INV, ITM, and VEH records for error-free Bill of Entry (BOE) clearance.
Need Automated Customs ERP Integration? Hai Technologies LLC develops custom API and EDI integrations directly connecting your Freight ERP to Dubai Trade & DP World. Consult Our Software Engineers →

What is Dubai Trade E-Mirsal II Flat File?

e-Mirsal II is Dubai Customs' electronic clearance and trade declaration platform. When clearing multi-line commercial shipments (containing dozens or hundreds of items), manually entering each line item in Dubai Trade takes hours and frequently triggers declaration rejections due to typos or UOM mismatches.

A Flat File (.txt) is a standardized tab-delimited text file containing 3 core record layers:

  • 🔹 Header Record (`H`): Declares sender ID, declaration type (`IMP`/`EXP`/`FZI`), total lines, and total invoice valuation.
  • 🔹 Invoice Record (`INV`): Declares commercial invoice number, date, currency, exchange rate, and incoterms (`CIF`/`FOB`).
  • 🔹 Item Records (`ITM`): Line-by-line breakdown containing the 8/12-digit UAE HS Code, country of origin, quantity, UOM, unit price, total price, and package details.
  • 🔹 Vehicle Records (`VEH`): Automotive declaration containing VIN/chassis number, engine number, model year, and body type.

How to Avoid Dubai Customs Declaration Rejections

Dubai Customs automatically validates declarations upon upload. The most common rejection triggers include:

Common Mistake Consequence Our Auto-Fix
UOM Mismatch Rejection (e.g. declaring liquids in PCS) Auto-suggests approved UOM (`LTR`, `KGM`, `NUM`)
Invalid HS Code Customs inspection / delay Validates against 13,000+ live UAE codes
Math Discrepancy Valuation query / fine Auto-calculates `Qty × Unit Price = Total`
Missing Permits Cargo held at port Flags MOIAT, MOCCAE & TDRA requirements

Frequently Asked Questions

Log into Dubai Trade Portal (e-Mirsal II) → Navigate to Customs Declaration → Select Upload Invoice File → Choose the downloaded .txt file. All invoice lines, HS codes, and weights will populate automatically.

Yes. The converter supports both standard 8-digit GCC Common Customs tariff codes and 12-digit Dubai Customs statistical codes, auto-formatting with proper dot notation.

Our free public converter supports up to 20 invoice lines per declaration with zero login required. For high-volume clearing agents processing thousands of lines monthly, contact our software team for enterprise batch accounts.