LEDES 1998B Format: All 24 Fields With an Example
The short answer
LEDES 1998B is a pipe-delimited, plain-text invoice format with 24 fields per record. Line 1 is the identifier LEDES1998B[], line 2 lists the 24 field names, and every following line is one fee, expense or invoice-level adjustment, with the invoice details repeated on each line and every record ending in [].
On this page8 sections
- Identifier
LEDES1998B[]- Fields per record
- 24 (23 pipes)
- Record terminator
[]- Dates
- YYYYMMDD
- Line types
- F · E · IF · IE
- Current revision
- Rev 7-2014
LEDES file example: what does a 1998B file look like?
Below is a complete LEDES 1998B invoice for a litigation matter: eight line items made up of five fees, two expenses and an invoice-level discount. Hover over any value to see its field number and name, or download the file and open it in your own tools.
LEDES1998B[]INVOICE_DATE|INVOICE_NUMBER|CLIENT_ID|LAW_FIRM_MATTER_ID|INVOICE_TOTAL|BILLING_START_DATE|BILLING_END_DATE|INVOICE_DESCRIPTION|LINE_ITEM_NUMBER|EXP/FEE/INV_ADJ_TYPE|LINE_ITEM_NUMBER_OF_UNITS|LINE_ITEM_ADJUSTMENT_AMOUNT|LINE_ITEM_TOTAL|LINE_ITEM_DATE|LINE_ITEM_TASK_CODE|LINE_ITEM_EXPENSE_CODE|LINE_ITEM_ACTIVITY_CODE|TIMEKEEPER_ID|LINE_ITEM_DESCRIPTION|LAW_FIRM_ID|LINE_ITEM_UNIT_COST|TIMEKEEPER_NAME|TIMEKEEPER_CLASSIFICATION|CLIENT_MATTER_ID[]20260930|INV-2026-0917|ACME01|2026-0042|5247.00|20260901|20260930|Professional services rendered September 2026|1|F|2.5|0.00|1625.00|20260903|L120||A104|TK1001|Analyze complaint allegations and assess potential defenses|98-7654321|650.00|Sterling, Margaret|PARTNR|LIT-2026-117[]20260930|INV-2026-0917|ACME01|2026-0042|5247.00|20260901|20260930|Professional services rendered September 2026|2|F|4.0|-158.00|1422.00|20260908|L210||A103|TK2002|Draft answer and affirmative defenses (10% courtesy discount)|98-7654321|395.00|Nguyen, Daniel|ASSOC|LIT-2026-117[]20260930|INV-2026-0917|ACME01|2026-0042|5247.00|20260901|20260930|Professional services rendered September 2026|3|F|3.2|0.00|1264.00|20260910|L310||A103|TK2002|Draft first set of interrogatories to plaintiff|98-7654321|395.00|Nguyen, Daniel|ASSOC|LIT-2026-117[]20260930|INV-2026-0917|ACME01|2026-0042|5247.00|20260901|20260930|Professional services rendered September 2026|4|F|1.5|0.00|292.50|20260911|L140||A110|TK3003|Organize client documents in review database|98-7654321|195.00|Romero, Lucia|PARALG|LIT-2026-117[]20260930|INV-2026-0917|ACME01|2026-0042|5247.00|20260901|20260930|Professional services rendered September 2026|5|F|1.2|0.00|780.00|20260915|L230||A109|TK1001|Attend initial case management conference|98-7654321|650.00|Sterling, Margaret|PARTNR|LIT-2026-117[]20260930|INV-2026-0917|ACME01|2026-0042|5247.00|20260901|20260930|Professional services rendered September 2026|6|E|250|0.00|25.00|20260910||E101|||Photocopies 250 pages at 0.10 per page|98-7654321|0.10|||LIT-2026-117[]20260930|INV-2026-0917|ACME01|2026-0042|5247.00|20260901|20260930|Professional services rendered September 2026|7|E|1|0.00|38.50|20260915||E109|||Parking for case management conference|98-7654321|38.50|||LIT-2026-117[]20260930|INV-2026-0917|ACME01|2026-0042|5247.00|20260901|20260930|Professional services rendered September 2026|8|IF|1|-200.00|-200.00|20260930|||||Invoice-level courtesy discount on fees per engagement letter|98-7654321||||LIT-2026-117[]5247.00 invoice total repeated on every line.Reading the file from the top:
- File line 1 is the format identifier,
LEDES1998B[], and nothing else. - File line 2 is the header: the 24 field names in specification order, ending in
[]. - File lines 3–7 are line items 1–5, all fees (type
F): hours × hourly rate, with a UTBMS task code in field 15, an activity code in field 17 and the timekeeper in fields 18, 22 and 23. - File lines 8–9 are expenses (type
E): 250 photocopies at 0.10 and a parking charge, with expense codesE101andE109in field 16 and no timekeeper. - File line 10 is an invoice-level fee adjustment (type
IF): a 200.00 courtesy discount.
For more examples to download, including a rejected invoice, a UK VAT invoice in 1998BI and a court reporter’s bill, see LEDES file examples.
What are the LEDES 1998B file structure rules?
A LEDES 1998B file is plain text with one record per line. Line 1 is exactly LEDES1998B[], line 2 is the header with the 24 field names in specification order, and every later line is one fee, expense or invoice-level adjustment. Each record has 24 fields separated by 23 pipes and ends with []. Dates are YYYYMMDD, and amounts are plain numbers with no currency symbols or commas.
| Rule | What it means in practice |
|---|---|
| Identifier line | Line 1 reads exactly LEDES1998B[], with no stray byte-order mark. Brightflag rejects anything else (error BF120). |
| Header line | Line 2 lists the 24 field names, pipe-delimited and in specification order. |
| Delimiter | The pipe |. 24 fields means 23 pipes per record; Legal Tracker reports a short record as error 010 and Brightflag as BF109. |
| Terminator | Every record ends with [], including lines 1 and 2, followed by a line break. |
| Dates | YYYYMMDD, and a real calendar date (Legal Tracker error 003). |
| Numbers | Digits, one decimal point and an optional leading minus. No currency symbols, commas or spaces (error 004). |
| Blank values | An empty field means no value. Don’t write NULL; Collaborati no longer accepts it. |
| Currency | There is no currency field. Portals take it from your account or ask at upload; for non-USD invoices, consider 1998BI. |
| Encoding | Plain text. Collaborati asks for ANSI and Brightflag for UTF-8, so plain ASCII characters are the safe choice. |
| Several invoices | Allowed by the spec. Legal Tracker needs its SpeedPost upload for them (error 014). |
| Several matters | Allowed if the receiver accepts them. Legal Tracker does not (error 021). |
What are the 24 fields in LEDES 1998B?
The table follows the LOC’s field specification (Rev 7-2014). “Required” is the LOC’s own status; clients and portals tighten or relax it, as the notes show. The example column is line item 1 of the sample above.
| # | Field · Line item 1 | Required | What it holds |
|---|---|---|---|
| 1 | INVOICE_DATEDate · 820260930 | Required | Date of the invoice. Only the first value per invoice counts, so keep it identical on every line. |
| 2 | INVOICE_NUMBERText · 20INV-2026-0917 | Required | Your invoice number. Must be unique for the client; one file can hold several invoices. |
| 3 | CLIENT_IDText · 20ACME01 | Required | Your code for the client, as the receiving system knows it. |
| 4 | LAW_FIRM_MATTER_IDText · 202026-0042 | Required | Your matter number. Collaborati treats it as optional; Legal Tracker allows one matter per invoice. |
| 5 | INVOICE_TOTALAmount · 12.45247.00 | Required | Sum of every line total, repeated on each line. Legal Tracker rejects files where it differs between lines (error 007). |
| 6 | BILLING_START_DATEDate · 820260901 | Required | First day of the billing period. |
| 7 | BILLING_END_DATEDate · 820260930 | Required | Last day of the billing period; never before the start date. |
| 8 | INVOICE_DESCRIPTIONText · 15 KBProfessional services re… | Optional | Summary of the work billed. Some clients require it; Collaborati caps it at 2,000 characters. |
| 9 | LINE_ITEM_NUMBERText · 201 | Required | Unique within the invoice. Numbers don’t have to be consecutive. |
| 10 | EXP/FEE/INV_ADJ_TYPEText · 2F | Required | F fee, E expense, IF invoice-level fee adjustment, IE invoice-level expense adjustment. |
| 11 | LINE_ITEM_NUMBER_OF_UNITSNumber · 10.42.5 | Not on IF/IE | Hours for fees, quantity for expenses. Zero or blank is an error except on adjustment lines. |
| 12 | LINE_ITEM_ADJUSTMENT_AMOUNTAmount · 10.40.00 | Optional | Negative for a discount or credit, positive for a premium. Blank or 0 means no adjustment. |
| 13 | LINE_ITEM_TOTALAmount · 10.41625.00 | Required | Units × unit cost + adjustment. |
| 14 | LINE_ITEM_DATEDate · 820260903 | Required | When the work was done or the cost incurred, normally inside the billing period. |
| 15 | LINE_ITEM_TASK_CODECode · 20L120 | Fee lines* | UTBMS task code such as L120, when the client uses task codes. |
| 16 | LINE_ITEM_EXPENSE_CODECode · 20blank in the sample | Expense lines | UTBMS expense code such as E101. Usually blank on fee lines. |
| 17 | LINE_ITEM_ACTIVITY_CODECode · 20A104 | Fee lines* | UTBMS activity code such as A104. Never used without a task code. |
| 18 | TIMEKEEPER_IDText · 20TK1001 | Fee lines | Your unique key for the person, not their name. Collaborati allows 8 characters. |
| 19 | LINE_ITEM_DESCRIPTIONText · 15 KBAnalyze complaint allega… | Fee lines | What was done. Collaborati truncates at 2,000 characters; Brightflag wants fewer than 1,024. |
| 20 | LAW_FIRM_IDText · 2098-7654321 | Required | Your firm’s ID: the US federal taxpayer ID where one exists. Legal Tracker accepts “None” otherwise. |
| 21 | LINE_ITEM_UNIT_COSTAmount · 10.4650.00 | Not on IF/IE | The standard, undiscounted rate or unit price. Discounts belong in field 12. |
| 22 | TIMEKEEPER_NAMEText · 30Sterling, Margaret | Fee lines | Written “Last, First”. For information only; field 18 is the key. |
| 23 | TIMEKEEPER_CLASSIFICATIONCode · 10PARTNR | Fee lines | Role code from the LOC 2014 list (PARTNR, ASSOC, PARALG…) or the client’s legacy codes. |
| 24 | CLIENT_MATTER_IDText · 20LIT-2026-117 | If client assigns | The client’s matter number, matched exactly, leading zeros included. |
The LOC writes amount sizes as 12.4 and 10.4 without defining the notation; it most likely means up to four decimal places. In practice, send money with two decimals and hours at the precision your client accepts. Many clients require tenths of an hour.
How are line totals and the invoice total calculated?
LINE_ITEM_TOTAL = LINE_ITEM_UNIT_COST × LINE_ITEM_NUMBER_OF_UNITS + LINE_ITEM_ADJUSTMENT_AMOUNT INVOICE_TOTAL = sum of LINE_ITEM_TOTAL for the invoice (repeated on every line)
In the sample, line item 2 bills 4.0 hours at 395.00, which is 1,580.00, with a −158.00 adjustment for a 10% courtesy discount, so its line total is 1,422.00. Adding all eight line totals gives 1,625.00 + 1,422.00 + 1,264.00 + 292.50 + 780.00 + 25.00 + 38.50 − 200.00 = 5,247.00, the invoice total on every line.
On rounding, the specification treats a line total as wrong if it strays from the formula by more than a reasonable variance (it gives 0.1% as an example, and about 1% for the invoice total) and asks sender and receiver to round the same way. Portals are stricter in practice: Collaborati allows 0.1%. Round each line to the cent first, then add.
How do discounts and adjustments work in 1998B?
In LEDES 1998B, a discount or premium on one line goes in LINE_ITEM_ADJUSTMENT_AMOUNT, negative for a discount and positive for a premium, while the unit cost stays at the standard rate, so the line total is units × unit cost + adjustment. A discount or credit on the whole invoice goes on its own IF (fees) or IE (expenses) line, whose adjustment amount should equal its line total.
Line-level adjustments
Put a discount or premium for a single line in LINE_ITEM_ADJUSTMENT_AMOUNT: negative for a discount or credit, positive for a premium. Keep LINE_ITEM_UNIT_COST at the standard rate. Legal Tracker rejects a zero or negative rate used as a discount (error 022) and names a credit entered as a positive adjustment as a common cause of line-total errors (error 006).
Invoice-level adjustments: IF and IE
An IF line adjusts the fees of the whole invoice and an IE line its expenses, for a discount, a credit or a flat fee. The spec says units and unit cost are ignored on these lines, but portals add rules:
- the adjustment amount must equal the line total (Legal Tracker error 018; Collaborati allows a 0.1% variance);
- an IF line needs at least one F line on the invoice, and an IE line at least one E line (Collaborati);
- Legal Tracker also wants an expense code on IE lines.
The two official LOC samples encode these lines differently. The 1998B sample puts the amount in both the adjustment and the total and leaves the unit cost blank. The 1998BI V5 sample puts the amount in the unit cost with a zero adjustment, which fails the adjustment-equals-total check above. Follow the 1998B pattern, as the sample’s last line does:
| Field | Value on the IF line |
|---|---|
EXP/FEE/INV_ADJ_TYPE | IF (fees) or IE (expenses, with an expense code) |
LINE_ITEM_NUMBER_OF_UNITS | 1 |
LINE_ITEM_UNIT_COST | blank |
LINE_ITEM_ADJUSTMENT_AMOUNT | -200.00 |
LINE_ITEM_TOTAL | -200.00, the same amount |
Brightflag’s instructions agree: an invoice-level discount is an IF line with a negative line total. Two things to avoid: zeroing an expense’s units or rate to move its amount into the adjustment (Legal Tracker error 016), and IF/IE lines in a 1998BI file for Collaborati, which rejects them; spread the discount across the fee lines instead.
Which timekeeper classification codes go in field 23?
In 2014 the LOC replaced the old two-letter classifications with six-character codes that fit every LEDES format, and the official samples use them. The most common, with the legacy codes many portals still expect:
| LOC 2014 code | Role | Legacy code |
|---|---|---|
PARTNR | Partner | PT |
ASSOC | Associate | AS |
OFCOUN | Of Counsel | OC |
LGLAST | Legal Assistant | LA |
PARALG | Paralegal | PL on some platforms |
NBOTHR | Other | OT |
Spelling matters. LawVu rejects PARTNER where it expects PARTNR, and Legal Tracker rejects an unrecognised classification (error 012), so ask each client which list it uses. The full LOC list also covers vendors, such as CTRPTR for court reporters and EXPERT for experts; the vendor guide shows them in use.
How do you check a LEDES 1998B file?
Run the file through a validator before you upload it. The free LEDES validator checks the structure, formats, arithmetic, dates, codes and timekeeper fields described above and explains each problem in plain English, pinned to the line and field. In the MatterBill app you can also choose the client’s platform, such as Legal Tracker, Collaborati or Brightflag, so its documented limits apply, then fix formatting problems in one click. Fixes that change money are shown before and after and wait for your confirmation.
Frequently asked questions
How many fields does LEDES 1998B have?
24. Every record after the identifier line, including the header, has 24 fields separated by 23 pipe characters. One Mitratech help page says 25, but the LOC specification, its official sample file and Brightflag’s column check all use 24.
What does [] mean in a LEDES file?
It is the record terminator. Every record in a 1998B file, including the identifier and header lines, ends with [] followed by a line break. Without it, platforms such as Collaborati report that the file is not in a recognized LEDES format.
What date format does LEDES 1998B use?
YYYYMMDD with no separators, for example 20260930 for September 30, 2026. The value must also be a real calendar date; Legal Tracker rejects invalid dates with posting error 003.
Does LEDES 1998B include currency or tax?
No. LEDES 1998B has no currency or tax fields. Platforms take the currency from your account or ask for it at upload. If an invoice carries VAT or GST, or is not in US dollars, use LEDES 1998BI or follow the client’s instructions for tax lines.
Can one LEDES 1998B file contain more than one invoice?
Yes. The specification allows several invoices in one file, because every line carries its own invoice number. Some platforms restrict it: Legal Tracker accepts multi-invoice files only through its SpeedPost upload.
Is LEDES 1998B still current?
Yes. The LEDES Oversight Committee last revised the 1998B documentation in 2014 (Rev 7-2014), to reference its new timekeeper classifications, and says it does not intend to change the format again. It remains the most widely used LEDES format in the US.
Should LINE_ITEM_UNIT_COST be the discounted rate?
No. LINE_ITEM_UNIT_COST is the standard, undiscounted rate. Enter a discount in LINE_ITEM_ADJUSTMENT_AMOUNT as a negative number; Legal Tracker rejects zero or negative rates used as discounts (error 022).
Sources
- LEDES 98B format and sample fileLEDES Oversight Committee
- LEDES 1998 posting errorsThomson Reuters Legal Tracker help
- LEDES 1998B format specificationsMitratech Collaborati help
- How to correctly format your LEDES fileBrightflag vendor help
- LOC revised timekeeper classification codes (August 2014)LEDES Oversight Committee
Use your client's current billing guidelines and e-billing settings alongside these references.