Legal AI text cleanup: formatting contracts and briefs
By the AI Text Formatter team · ·
Legal professionals are using AI tools like ChatGPT, Claude, and specialized legal LLMs to draft contracts, write briefs, and summarize case law. It saves a lot of drafting time.
But there is a problem: the formatting.
The unprofessional look of raw AI output
Legal documents require strict formatting. They need precise numbered lists, specific indentations, and clean text. AI output uses internet-style formatting instead:
- Hashes for headers (
## Section 1: Liability) - Asterisks for bold text (
**Indemnification**) - Awkwardly structured links
If a client, opposing counsel, or a judge sees a document with these symbols, it signals carelessness.
Best practices for cleaning legal AI drafts
1. Eliminate all special symbols
The most important step is stripping the formatting symbols that AI generates. Legal documents should use your word processor's built-in styles (Word or Google Docs heading styles) rather than text-based symbols.
Use a dedicated cleaner like the AI Text Formatter to remove these symbols from your AI drafts before pasting them into your final document.
2. Standardize numbering
AI often invents its own numbering or uses bullet points where a numbered list is required. After cleaning the text, review and apply your firm's standard numbering format (e.g., Article I, Section 1.01).
3. Review AI-generated links
When AI cites a source or provides a link, it wraps it in brackets and parentheses [like this](https://example.com). This format is useless in a printed brief and looks bad in a PDF. The formatting tool can clean these up into readable text.
4. Never skip the human review
AI can speed up drafting, but it does not replace legal judgment. Always review the cleaned text to make sure the reasoning is sound and the language says what you intend it to say.
Cleaning your AI output takes a few seconds and keeps your legal documents looking as professional as the work behind them.
The symbols that matter most in legal drafting
Four kinds of residue show up in nearly every AI-drafted clause, and each needs a different decision rather than a blanket strip.
Smart quotes. ChatGPT and Claude write curly quotation marks and apostrophes. In a contract that is often fine — most firms' house styles use them — but a document that mixes curly quotes from the AI with straight quotes typed by a paralegal looks careless, and some e-filing systems and document-comparison tools treat the two as different characters. Pick one. The Straighten quotes option in the AI Text Formatter converts every curly quote to the straight form in one pass; leave it off if your style is typographic.
Em dashes. Legal writing uses em dashes legitimately, to set off a defined term or an exception, so this is one of the few contexts where you may want to keep them. What you do not want is the AI density of one per sentence. The em dash remover replaces them with commas and leaves the en dashes in section ranges (§§ 2.1–2.4) untouched; use it on the narrative parts and keep the dashes in the operative clauses if your drafting convention calls for them.
Bold defined terms. Models bold defined terms with double asterisks: **"Confidential Information"**. Pasted into Word the asterisks show literally. The ChatGPT to Word converter turns them into real bold, which is what the clause wants, and the strip markdown tool removes them when the text is going into a plain-text matter-management field.
Citation markers. Research answers from Perplexity, and ChatGPT with browsing, carry [1] markers and 【12†source】 tags after the sentences they support. Those must not reach a brief. The remove ChatGPT formatting page strips them and keeps the Sources list so the authority can be cited properly, in the form the court expects, by a human who has read it.
Numbering, cross-references and the hidden characters
AI numbering is decorative; legal numbering is structural. A model will write "1." for a list that should be Section 3.2(a), restart at 1 after an interruption, and nest with indentation that Word reads as a different list. After cleaning the symbols, rebuild the numbering with Word's own multilevel list styles so cross-references update when a clause moves. Never leave a cross-reference as typed text from the AI — "as described in Section 4 above" is a hallucination risk as much as a case citation is.
The characters you cannot see deserve a separate check. AI output carries non-breaking and narrow no-break spaces between figures and units ("30 days", "$5,000"), and the occasional zero-width character inside a word. In Word they cause lines that refuse to wrap and, more seriously, a Find that fails to find a term because the invisible character sits inside it. Every tool on this site strips them automatically; the invisible character remover shows exactly which ones were there.
Confidentiality: where the text goes
A clause pasted into a web tool is a clause that has left the firm. The tools on this site run entirely in your browser — the text is processed by client-side JavaScript and never sent to a server, stored or logged — which is the only acceptable design for privileged material and is stated in the privacy policy. Check the same question of every other tool in the workflow, including the AI assistant itself and any browser extension that reads the page.
A short checklist
- Strip the markdown symbols before pasting into the document, or convert them to real styles with the Word converter.
- Decide on quotes — curly or straight — and apply it to the whole document, not just the AI parts.
- Reduce the em dashes in narrative text; keep them where your drafting convention uses them.
- Remove citation markers and cite the authority yourself, in proper form, after reading it.
- Rebuild numbering with Word's multilevel lists; never trust an AI cross-reference.
- Verify that no invisible characters survived a Find for a defined term.
- Read the clause. The formatting is the easy part.