How to Create a LEDES File (From Excel or Billing Software)
The short answer
To create a LEDES file, export it from billing software that supports LEDES, convert a spreadsheet of time and expense entries, or build the invoice line by line in a LEDES tool. Whichever route you take, collect the client’s IDs and coding rules first, and check the finished file before you upload it.
On this page8 sections
What do you need before you create a LEDES file?
Most rejections trace back to details the client controls, so gather these first:
- Format and platform. 1998B, 1998BI or XML, and which e-billing platform the client uses.
- Client ID and client matter ID, exactly as the client issued them, including leading zeros.
- Your law firm ID: your US federal taxpayer ID (EIN) where you have one.
- A unique invoice number and the billing period.
- Timekeeper details: an ID per person, names as “Last, First”, a classification the client accepts and the approved rates.
- Code rules: which UTBMS task, activity and expense codes the client requires.
- Billing guidelines: time increments (often tenths of an hour), description limits, and rules on block billing and expenses.
Route 1: How do you export LEDES from billing software?
Most time and billing systems can export LEDES once the client is set up for it, and the setup looks similar everywhere: enter your firm’s LEDES or tax ID, give the client its LEDES client ID, add the client’s matter ID to each matter, assign each timekeeper a classification and put UTBMS codes on time and expense entries. Then generate the invoice and download it as LEDES. What each tool can export differs, according to the vendors’ own help pages:
| Software | LEDES formats it exports |
|---|---|
| Clio | 1998B, 1998BI, XML 2.0 and 2.1 |
| Bill4Time | 1998B, 1998BI and XML 2.1 (beta) |
| TimeSolv | 1998B, 1998B V2 (BI) and LEDES 2000 |
| CosmoLex | 1998B, 1998BI, LEDES 2000 and XML 2.0 |
| PracticePanther, MyCase, Smokeball, Filevine, Lawcus | 1998B only |
| Actionstep | 1998BI only |
Watch for tool-specific quirks. MyCase won’t generate LEDES for balance-forward invoices and stops on a blank line description. Smokeball doesn’t export its Description field, so the details belong in the Subject line. CosmoLex cuts the firm matter ID to 20 characters. And check what comes out: reviewers report broken LEDES output from some packages, and one PCLaw user wrote on Capterra that “the main issue within PCLaw was with generating Ledes invoices.”
Route 2: How do you convert a spreadsheet to LEDES?
If your billing system has no LEDES export, or you keep time in a spreadsheet, convert the entries. Excel has no LEDES option, so you need a converter. In MatterBill it works like this:
- Export one row per entry.
Each row is one time entry or expense with its date, timekeeper, hours or quantity, rate, amount, description and any UTBMS codes. Save it as CSV or .xlsx (old .xls workbooks need re-saving first), or start from the free template on the Excel to LEDES page.
- Open the import.
Start from the free Excel to LEDES page or the import in the MatterBill app, and drop the file in.
- Match the columns.
MatterBill suggests a LEDES field for each column from its header, such as “Hours” for units or “Narrative” for the description. Check and correct the mapping.
- Add the invoice details.
A short form collects what a timesheet doesn’t carry: the invoice number and date, the client ID, matter IDs and your firm ID.
- Review what was derived.
Missing line totals, line numbers, the invoice total and the billing period are calculated, and every derived value is listed so you can confirm it.
- Fix, then export.
Work through the issues, then export LEDES 1998B or 1998BI, plus a matching PDF if the client wants one.
Route 3: How do you build a LEDES invoice in a LEDES tool?
For an occasional invoice, or a vendor without billing software, it can be quicker to build the invoice directly: add fee and expense lines, pick codes from a lookup and let the tool do the arithmetic and write the file. In MatterBill you can start a new invoice or open a sample, add and edit lines, look up UTBMS codes as you go and export LEDES 1998B or 1998BI with a matching PDF. Manual invoice creation, checking, editing and conversion between supported LEDES formats are free and unlimited. Import review is free. Exporting invoices imported from Excel, CSV or PDF, and batch workflows, requires MatterBill Pro: $39/month or $390/year, with 10 paid-workflow invoices each month. Corrections and re-exports of the same invoice never count twice. See pricing details.
Start an invoice in MatterBill
Can the client’s e-billing platform create the file?
Sometimes. Thomson Reuters Legal Tracker gives firms a free LEDES Generator that builds one 1998BI invoice at a time for its clients’ matters, and CounselLink and Collaborati let firms enter invoices online. Several platforms also offer clients AI-based conversion of PDF invoices, including Legal Tracker, Wolters Kluwer and Collaborati, but that only helps where the client has bought and switched it on. All of these work for one client at a time, inside that client’s platform.
Can you write a LEDES file by hand?
Yes. LEDES 1998B is plain text, and the LOC publishes the specification and a sample file. But every record needs exactly 24 fields, a [] terminator and totals that agree, which is why hand-built files are where many mechanical errors start. If you do it, begin from a known-good example such as the annotated file in the LEDES 1998B guide, and validate the result.
What should you check before uploading a LEDES file?
- Line 1 is exactly
LEDES1998B[](orLEDES98BI V2[]) and line 2 is the header. - Every record has 24 fields (52 for 1998BI) and ends with
[]. - Dates are YYYYMMDD; amounts have no currency signs, commas or spaces.
- For ordinary 1998B fee and expense lines, the line total is units × rate + adjustment. For 1998BI, also add
LINE_ITEM_TAX_TOTAL. Follow the target portal’s precision and rounding rules, handle invoice-level adjustments according to the selected format, and reconcile line, tax and invoice totals. See the 1998BI tax formulas. - Discounts are negative adjustments; the unit cost is the standard rate.
- Client ID, client matter ID and invoice number match the client’s records, leading zeros included.
- Task, expense and activity codes sit in fields 15, 16 and 17, and the client accepts them.
- Timekeeper classifications use the client’s codes, and names are “Last, First”.
- Descriptions fit the platform’s limit and contain no pipes or line breaks.
- If you also upload a PDF copy, its total matches the LEDES total to the cent, as CounselGO requires.
The free LEDES validator runs these checks in your browser. It can’t confirm the client’s own setup, such as registered timekeepers or approved rates, so treat a clean result as ready to submit, not guaranteed to be accepted. For what happens when something slips through, see why LEDES invoices get rejected.
Frequently asked questions
Can I create a LEDES file in Excel?
You can prepare the data in Excel, but Excel has no LEDES export. A LEDES 1998B file needs an identifier line, a header line and pipe-delimited records that each end in [], so convert the spreadsheet with a LEDES tool instead of saving it as text.
How do I convert a PDF invoice to LEDES?
MatterBill extracts PDF text and performs local OCR for scanned invoices. Review the extracted rows against the source, correct quantities, rates, codes and totals, then create a LEDES invoice. Preview and review are free; exporting the imported invoice requires Pro. Extraction runs in your browser and isn't AI; nothing is sent to an AI model unless you choose optional AI suggestions.
What file extension should a LEDES file have?
Use .txt for LEDES 1998B and 1998BI files and .xml for LEDES XML. Brightflag, for example, rejects LEDES uploads with other extensions.
Is there a free LEDES invoice generator?
Thomson Reuters Legal Tracker’s LEDES Generator is free for firms billing Legal Tracker clients, one 1998BI invoice at a time. MatterBill provides unlimited free manual invoice creation, checking, editing and conversion between supported LEDES formats. Exporting imported spreadsheet or PDF invoices and using batch workflows require Pro.
What goes in LAW_FIRM_ID if I don’t have a tax ID?
The specification asks for your US federal taxpayer ID where one exists. Without one, follow the client’s instructions; Legal Tracker, for example, accepts the word None.
Can one LEDES file contain several invoices?
The LEDES specification allows it, but not every platform does: Legal Tracker needs its SpeedPost upload for files with several invoices. When in doubt, create one file per invoice.
Sources
- LEDES 98B formatLEDES Oversight Committee
- LEDES billsClio help center
- LEDES billingMyCase support center
- Troubleshoot LEDES posting issuesThomson Reuters Legal Tracker help
- LEDES Generator quick reference guide for law firm billersThomson Reuters Legal Tracker
Use your client's current billing guidelines and e-billing settings alongside these references.