Free Tool

État 9421 Generator (Excel to SIMPL-IR XML)

Fill in your company details, upload your payroll Excel, and download the SIMPL-IR XML ready for the annual Déclaration des Traitements et Salaires (9421).

Employer information

Your company details for the DTS header.

Upload your payroll Excel

One row per employee. Use our template to ensure the right columns.

First time? Download the Excel template with the required column names.

Click to choose a file or drag and drop it here

Accepted: .xlsx, .xls, .csv (max 15 MB)

Generate the SIMPL-IR XML

Download the XML ready to upload on the DGI SIMPL-IR portal.

Fill in at least the Tax ID, company name and fiscal year, and upload your Excel to enable the XML download.

Start by filling in your employer details, then download our Excel template, fill it in and upload it here.

How to generate your État 9421 XML

1

Fill in your employer information: tax ID, ICE, CNSS, address and fiscal year.

2

Download the Excel template to see the expected columns.

3

Fill in one row per employee with their salary, deductions and IR withheld.

4

Upload your Excel and review the preview and any reported issues.

5

Click 'Download SIMPL-IR XML' and upload the file on the DGI SIMPL-IR portal.

Why use our État 9421 generator?

100% local processing

Your payroll data never leaves your browser. Nothing is uploaded to our servers.

SIMPL-IR ready

Generates the XML schema accepted by the DGI SIMPL-IR EDI import for the annual DTS.

Excel-friendly

Works with any .xlsx, .xls or .csv file. Use our template to skip the formatting headaches.

Built for Morocco

Designed for Moroccan SMEs, accountants and fiduciaries filing the annual 9421 declaration.

Frequently asked questions

What is the État 9421?

The État 9421 is the annual Déclaration des Traitements et Salaires (DTS) that every Moroccan employer must file with the DGI before the end of February, declaring salaries paid and IR withheld at source.

Is the generated XML compatible with SIMPL-IR?

Yes. The XML follows the DGI EDI Simpl-IR DTS schema. You can upload it directly on the SIMPL-IR portal in EDI mode.

Is my payroll data sent to your servers?

No. The tool runs entirely in your browser. Your Excel file is parsed locally and the XML is generated on your device.

Which Excel format should I use?

Download our template. It contains the exact column names (matricule, nom, prenom, cin, cnss, periode, salaireBrutImposable, etc.) the tool expects.

Does it support occasional staff and trainees?

This version covers permanent employees (Personnel Permanent), which is the most common case. We will add Personnel Occasionnel and Stagiaires in a future update.

Is this tool really free?

Yes. The État 9421 generator is 100% free, with no signup and no limit on the number of employees.