Skip to content

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 [].

  • By the MatterBill team
  • Published · Updated
  • 10 min read
  • New to LEDES? Start with What is LEDES?
On this page8 sections
  1. LEDES file example
  2. File structure rules
  3. The 24 fields
  4. How totals are calculated
  5. Discounts and adjustments
  6. Timekeeper classifications
  7. Checking a 1998B file
  8. FAQ
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.

acme-september-clean.txt1998B
Open in MatterBill
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[]
Fictional sample.Every firm, person and ID is invented. The arithmetic is real: each line total is units × unit cost + adjustment, and the eight line totals add up to the 5247.00 invoice total repeated on every line.

Reading the file from the top:

  1. File line 1 is the format identifier, LEDES1998B[], and nothing else.
  2. File line 2 is the header: the 24 field names in specification order, ending in [].
  3. 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.
  4. File lines 8–9 are expenses (type E): 250 photocopies at 0.10 and a parking charge, with expense codes E101 and E109 in field 16 and no timekeeper.
  5. 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.

RuleWhat it means in practice
Identifier lineLine 1 reads exactly LEDES1998B[], with no stray byte-order mark. Brightflag rejects anything else (error BF120).
Header lineLine 2 lists the 24 field names, pipe-delimited and in specification order.
DelimiterThe pipe |. 24 fields means 23 pipes per record; Legal Tracker reports a short record as error 010 and Brightflag as BF109.
TerminatorEvery record ends with [], including lines 1 and 2, followed by a line break.
DatesYYYYMMDD, and a real calendar date (Legal Tracker error 003).
NumbersDigits, one decimal point and an optional leading minus. No currency symbols, commas or spaces (error 004).
Blank valuesAn empty field means no value. Don’t write NULL; Collaborati no longer accepts it.
CurrencyThere is no currency field. Portals take it from your account or ask at upload; for non-USD invoices, consider 1998BI.
EncodingPlain text. Collaborati asks for ANSI and Brightflag for UTF-8, so plain ASCII characters are the safe choice.
Several invoicesAllowed by the spec. Legal Tracker needs its SpeedPost upload for them (error 014).
Several mattersAllowed 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 1RequiredWhat it holds
1INVOICE_DATEDate · 820260930RequiredDate of the invoice. Only the first value per invoice counts, so keep it identical on every line.
2INVOICE_NUMBERText · 20INV-2026-0917RequiredYour invoice number. Must be unique for the client; one file can hold several invoices.
3CLIENT_IDText · 20ACME01RequiredYour code for the client, as the receiving system knows it.
4LAW_FIRM_MATTER_IDText · 202026-0042RequiredYour matter number. Collaborati treats it as optional; Legal Tracker allows one matter per invoice.
5INVOICE_TOTALAmount · 12.45247.00RequiredSum of every line total, repeated on each line. Legal Tracker rejects files where it differs between lines (error 007).
6BILLING_START_DATEDate · 820260901RequiredFirst day of the billing period.
7BILLING_END_DATEDate · 820260930RequiredLast day of the billing period; never before the start date.
8INVOICE_DESCRIPTIONText · 15 KBProfessional services re…OptionalSummary of the work billed. Some clients require it; Collaborati caps it at 2,000 characters.
9LINE_ITEM_NUMBERText · 201RequiredUnique within the invoice. Numbers don’t have to be consecutive.
10EXP/FEE/INV_ADJ_TYPEText · 2FRequiredF fee, E expense, IF invoice-level fee adjustment, IE invoice-level expense adjustment.
11LINE_ITEM_NUMBER_OF_UNITSNumber · 10.42.5Not on IF/IEHours for fees, quantity for expenses. Zero or blank is an error except on adjustment lines.
12LINE_ITEM_ADJUSTMENT_AMOUNTAmount · 10.40.00OptionalNegative for a discount or credit, positive for a premium. Blank or 0 means no adjustment.
13LINE_ITEM_TOTALAmount · 10.41625.00RequiredUnits × unit cost + adjustment.
14LINE_ITEM_DATEDate · 820260903RequiredWhen the work was done or the cost incurred, normally inside the billing period.
15LINE_ITEM_TASK_CODECode · 20L120Fee lines*UTBMS task code such as L120, when the client uses task codes.
16LINE_ITEM_EXPENSE_CODECode · 20blank in the sampleExpense linesUTBMS expense code such as E101. Usually blank on fee lines.
17LINE_ITEM_ACTIVITY_CODECode · 20A104Fee lines*UTBMS activity code such as A104. Never used without a task code.
18TIMEKEEPER_IDText · 20TK1001Fee linesYour unique key for the person, not their name. Collaborati allows 8 characters.
19LINE_ITEM_DESCRIPTIONText · 15 KBAnalyze complaint allega…Fee linesWhat was done. Collaborati truncates at 2,000 characters; Brightflag wants fewer than 1,024.
20LAW_FIRM_IDText · 2098-7654321RequiredYour firm’s ID: the US federal taxpayer ID where one exists. Legal Tracker accepts “None” otherwise.
21LINE_ITEM_UNIT_COSTAmount · 10.4650.00Not on IF/IEThe standard, undiscounted rate or unit price. Discounts belong in field 12.
22TIMEKEEPER_NAMEText · 30Sterling, MargaretFee linesWritten “Last, First”. For information only; field 18 is the key.
23TIMEKEEPER_CLASSIFICATIONCode · 10PARTNRFee linesRole code from the LOC 2014 list (PARTNR, ASSOC, PARALG…) or the client’s legacy codes.
24CLIENT_MATTER_IDText · 20LIT-2026-117If client assignsThe client’s matter number, matched exactly, leading zeros included.
* Required for fee lines when the client uses UTBMS codes. Sizes are the LOC’s; Collaborati documents its own (for example 14.2 for most amounts).

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:

FieldValue on the IF line
EXP/FEE/INV_ADJ_TYPEIF (fees) or IE (expenses, with an expense code)
LINE_ITEM_NUMBER_OF_UNITS1
LINE_ITEM_UNIT_COSTblank
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 codeRoleLegacy code
PARTNRPartnerPT
ASSOCAssociateAS
OFCOUNOf CounselOC
LGLASTLegal AssistantLA
PARALGParalegalPL on some platforms
NBOTHROtherOT

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.

Open the same invoice with typical mistakes

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

Use your client's current billing guidelines and e-billing settings alongside these references.

Free tools

Check it before you send it.

Use a free account to work with your own invoice in your browser.

From the guide to your next invoice

Your LEDES file. Checked and ready.

Drop in a LEDES 1998B or 1998BI file, or a CSV or Excel timesheet. MatterBill checks it against the LEDES spec and the documented rules of the portal you pick, explains each problem in plain English and fixes formatting in one click.

  • Plain-English errors, pinned to the line and field
  • One-click formatting fixes; money changes shown before and after
  • Rule profiles for Legal Tracker, Collaborati, Brightflag and more

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.

$39/month or $390/year · 10 paid-workflow invoices each month · excludes tax. 14-day money-back guarantee.

Invoices are checked in your browser. No checker can promise acceptance: approved rates, registered timekeepers and matter IDs live in your client's system.

MatterBill checkSample invoice
acme-september-invoice.txtLEDES 1998B8 lines
  • Invoice total doesn't match the linesInvoice INV-2026-0917 · Set the invoice total to 5247.00 (the corrected lines)ReviewError
  • Date isn't YYYYMMDDLine 1 · Change to 20260903FixError
  • Discount entered as a positive numberLine 2 · Change the adjustment to -158.00ReviewError
  • Timekeeper under different namesInvoice INV-2026-0917 · Use "Sterling, Margaret" on every lineReviewWarning
Real findings from MatterBill on its built-in sample invoice. Fixes that change money always wait for your review.