HOME / BLOG / HONG KONG

Filing a Hong Kong Profits Tax Return in iXBRL on a Mac: The Template Tool, Step by Step

By Di Ma, Project Manager 27 OCT 2026 · 8 MIN READ

If your company e-files its Profits Tax Return, the financial statements and tax computation don't go up as PDFs. They go up as iXBRL — HTML files with every figure tagged so the IRD's systems can read it. For small companies the IRD provides a free Template Tool that does the tagging for you. It works. But the first time through, a handful of things trip almost everyone up, and the IRD's 160-page user guide doesn't mention most of them.

This guide walks through a 2025/26 return (BIR51) for a small private company, on a Mac, with the gotchas from a real filing. The example company is invented: ABC Trading Limited, March year end, gross income well under HK$5 million, audited accounts prepared under SME-FRS.

Does this apply to you?

Before you start

Anything that is a judgment rather than a procedure — two-tiered rates, connected entities and Form S1, offshore claims, deductibility — confirm with your tax adviser or auditor. This guide doesn't cover it.

Step 1: Download and install the tool

  1. On the IRD's iXBRL materials page, download the Mac tools: irdixbrltoolsmac2025v2.zip (version 4.1.0.0, English, covering 2022/23 to 2025/26). It is about 280 MB and contains a .dmg installer.
  2. The zip is not password-protected. If macOS asks for a password, the download was cut short — the IRD's server sometimes drops long downloads. Re-download and check the size: 280,361,147 bytes (as reported by the IRD's server on 27 October 2026). Open it with Archive Utility.
  3. macOS may block the app the first time you open it. Allow it in System Settings › Privacy & Security.
macOS Get Info window for irdixbrltoolsmac2025v2.zip showing its size, 280,361,147 bytes.
Check the size before you unzip: 280,361,147 bytes for the 2025 Mac release.

Step 2: Create a workspace

Choose Start New Workspace, pick a folder, name the workspace and select year of assessment 2025/26.

The workspace has five sections: Enter Basic Information, Enter Additional Information for Tax Computation, Tax Computation, Financial Statements, and Finalise Package. Work through them in that order.

Step 3: Enter Basic Information

The Template Tool's Enter Basic Information form for the fictional ABC Trading Limited: principal business activity chosen from a dropdown (“Import/export, wholesale and retail trades”) and the 6-digit HKSIC code 460100 in a separate field.
Enter Basic Information, for the fictional ABC Trading Limited: the business activity comes from a dropdown, the HKSIC code goes in its own field.

Step 4: Enter Additional Information for Tax Computation

Step 5: The tax computation

  1. Choose the template Corporation (General).
  2. On Summary, enter the assessable profits. The summary lines fill from the Additions, Deductions and Detailed Profit and Loss sheets.
  3. Fill in the detail. For ABC Trading Limited: profit before tax HK$800,000, with HK$2,000 of bank interest that is not taxable entered under Deductions › "Net interest income exempted".
  4. Use [+] to add rows the template doesn't have — for example subcontracting charges under cost of sales.

The template stops at assessable profits. It doesn't calculate the tax payable — the IRD does that in the assessment.

Corporation (General) tax computation Summary for ABC Trading Limited: net profit before tax HK$800,000, less HK$2,000 of exempt bank interest, giving assessable profits of HK$798,000.
The tax computation Summary with the example figures: HK$800,000 profit before tax, less HK$2,000 exempt interest, gives HK$798,000 assessable profits.

Step 6: The financial statements

Step 7: Validate

The Validation Results panel listing 60 mandatory items with no value, each marked “Pending for action”, next to the View Details and Confirm zero links.
Validation Results: mandatory items with no value are listed as “Pending for action” until you fill them in or use Confirm zero.

Step 8: Finalize the package

"Generate Report" does not produce the upload file — it's a preview. The upload files come from Finalise Package on the workspace screen:

  1. Select both the financial statements and the tax computation.
  2. Click Validate. Among other things, it checks that profit before tax is the same in both.
  3. Choose an output folder and click Finalise.

The files are named automatically: [IRD file no.]-202526-F-[timestamp].xhtml for the financial statements and …-T-… for the tax computation. Upload a matching pair from the same finalization — not an F file from one run and a T file from another.

Step 9: Upload, refresh and submit

  1. In the Business Tax Portal, open "Uploading of Data Files for Supplementary Forms and Supporting Documents to Profits Tax Return" and upload the two .xhtml files as they are — the portal zips them itself.
  2. Wait for the IRD's validation. The IRD says results come within one working day, and files that fail validation are not treated as attached to the return.
  3. Open the electronic return, BIR51(ie). If it says the return is out of step with your uploads, click "Refresh".
  4. The electronic return is much shorter than the paper BIR51 — Parts 4 to 12 come from the iXBRL files. If no supplementary forms apply, click OK at the prompt.
  5. Submit. Uploading on its own is not filing — the return has to be submitted.
  6. Keep the zip files and the check sums the portal shows after upload.

Portal messages you may see

Business Tax Portal messages seen when uploading iXBRL files (October 2026)
CodeWhat it meansWhat to do
553-E-0503Required data file missing — typically the financial statements were not uploaded with the tax computationUpload both files from the same finalization
553-E-0606The IRD's validation of the uploaded files is still pendingWait — the IRD says results come within one working day. Files that fail validation are not treated as attached
553-E-0601The draft return is out of step with the files you uploadedClick "Refresh" on the return

Gotchas, one line each

  1. Upload both files. A tax computation without the financial statements is rejected with error 553-E-0503.
  2. A password prompt means a broken download, not a protected file. Re-download and check the size.
  3. No hyphens in the workspace name, and keep the folder path under 100 characters.
  4. Principal business activity is a dropdown of HKSIC sections; the 6-digit HKSIC code is a separate field.
  5. The cover-page Yes/No questions live in Basic Information. Finalizing fails until they are answered.
  6. Dates are picked, not typed — use the calendar pickers.
  7. Service income needs its note. If service income isn't zero, "Service fee received details" is mandatory.
  8. Explanatory notes are capped at 300 characters (IRD user guide, para. 160); numeric fields at 14 digits.
  9. Review before "Confirm zero". It sets every listed mandatory item to 0 in one click.
  10. SME-FRS accounts use HKFRS-PE, and income tax goes in as a negative number.
  11. "Generate Report" is not the upload file. "Finalise Package" is.
  12. Upload the .xhtml files as they are, as a matching pair from one finalization.

Deadlines

More on dates: Hong Kong profits tax return deadlines.

If you'd rather not

Certanta prepares the iXBRL financial statements and tax computation as part of preparing its clients' Profits Tax Returns, from books kept current through the year. See pricing.

Frequently asked questions

Do I have to file my Profits Tax Return in iXBRL?

For 2025/26, e-filing is mandatory only for "specified persons" under section 51AAB and Schedule 65 of the Inland Revenue Ordinance — entities in large multinational groups. Other companies may file on paper. If you e-file and your accounts are prepared under full HKFRS, HKFRS for Private Entities or SME-FRS, the portal requires both the financial statements and the tax computation in iXBRL.

Who can use the IRD's Template Tool?

Corporations, and persons other than corporations, whose gross income for the year of assessment does not exceed HK$5,000,000. Every field in the templates is pre-tagged.

Which taxonomy do I use for SME-FRS accounts?

HKFRS-PE. The IRD's user guide states that the FS-PE taxonomy applies to financial statements prepared under HKFRS for Private Entities and also to enterprises adopting SME-FRF & SME-FRS.

Why does the Mac tool zip ask for a password?

It isn't password-protected; a password prompt usually means the download was cut short. Re-download it and check that the file size is 280,361,147 bytes before opening it with Archive Utility.

Which file do I upload — the report or the package?

The package. "Generate Report" only produces a preview. "Finalise Package" creates the .xhtml files for the financial statements and tax computation; upload a matching pair from the same finalization.

Does the Template Tool calculate the tax payable?

No. The tax computation template stops at assessable profits; the IRD calculates the tax in its assessment.

Rather not do this yourself?

Certanta prepares the iXBRL financial statements and tax computation for its clients' Profits Tax Returns, from books kept current all year.

Open the demo See pricing

Written in October 2026 for the year of assessment 2025/26, using IRD iXBRL Data Preparation Tools version 4.1.0.0 for Mac (English). The IRD's screens, tools and rules change each year — check the IRD pages linked above before you rely on any step. This is a procedural guide, not tax advice.