Text Messages in a Criminal Case: What to Give Your Defense Lawyer and What Not to Delete

To get text messages off your iPhone for your criminal defense attorney, keep everything, then export each whole conversation your lawyer asks for as a PDF with TextPort, an iPhone app (TextPort on the App Store), and send it to your lawyer only, not to the police, the prosecutor or the other person. TextPort puts the sender, date and time on every message and needs no computer. Don't delete or change anything on the phone: deleting evidence can be a crime of its own, and your lawyer may want the messages in another form, or an expert to examine the phone itself.
Ask your lawyer first which conversations and dates they want and how they want the files sent. The export itself is the same as for any lawyer, step by step in how to send text messages to a lawyer. This page covers what's different in a criminal case: what not to delete, who not to share the texts with, and when the prosecution may see them.
This is general information about U.S. criminal cases, not legal advice. Your lawyer decides what to do with the texts, and the rules differ by state and between state and federal court. If you don't have a lawyer yet, contact your county's public defender's office: the San Francisco Public Defender, for one, asks people who were arrested or think they're under investigation to call even before charges are filed.
How to get the texts off your phone
| Your phone or computer | What to use | What you get |
|---|---|---|
| iPhone, no computer | TextPort, an iPhone app | The whole conversation for the dates you pick, as a PDF with the sender, date and time on every message and numbered pages. Also CSV or plain text. |
| Mac | TextPort for Mac (free), or Messages' File > Print | A PDF of any conversation on the Mac. Apple's Messages guide prints or saves the conversation that's open. |
| Windows PC, texts from an iPhone | TextPort for Windows (free) | Any conversation in a backup of the iPhone, as a PDF |
TextPort is free to download and imports your first 3 conversations free; exporting needs a subscription. The Mac and Windows apps are free.
Texts in a criminal case, step by step
- Don't delete or change anything. Not the texts that look bad, not the whole chat, not the app, and don't edit or unsend messages. Turn off automatic deletion: Settings > Apps > Messages > Keep Messages > Forever. Deleting evidence can be a crime of its own (see below), and don't count on the other person still having a copy.
- Ask your lawyer what they want and how. Usually it's every conversation with the people involved, from before the events to now. Ask how they want the messages collected and sent, and write the list down.
- Export each whole conversation for those dates. In TextPort, import the chat and pick the date range. Export the whole conversation, both sides, rather than single messages: your lawyer needs the context, including the messages that hurt.
- Send the files only to your lawyer, the way they ask. Use the method your lawyer gives you. Don't forward the texts to friends, family or the other person, and don't post about them.
- Keep the phone as it is. Don't reset it, trade it in or let someone else "clean it up." If anyone questions whether the messages are real, your lawyer may want the original phone examined.
Don't delete anything, even what hurts
Deleting or hiding messages can be charged separately from whatever you're accused of, and under federal and Texas law that can apply even before an investigation starts:
- Federal: anyone who "knowingly alters, destroys, mutilates, conceals, covers up, falsifies" a record to obstruct a federal investigation, or in relation to or contemplation of one, faces a fine, up to 20 years in prison, or both (18 U.S.C. § 1519).
- Texas: knowing that an investigation or official proceeding is pending, altering, destroying or concealing a record "with intent to impair its verity, legibility, or availability as evidence" is tampering with evidence, a third-degree felony, and so is doing it when you know an offense has been committed, to impair the record as evidence in a later investigation or proceeding about that offense (Penal Code § 37.09).
- California: willfully destroying, erasing or concealing a record or digital image you know is about to be produced in evidence in a trial, inquiry or investigation, with intent to keep it out, is a misdemeanor (Penal Code § 135).
If you already deleted something, tell your lawyer; don't try to fix it yourself.
Talk about the texts with your lawyer only
The San Francisco Public Defender tells clients: "It is very important that you do not talk to anyone about your matter, including the police, without a lawyer being present." It also explains why: "only conversations between you and your lawyer are protected by attorney-client privilege and are confidential." That protects your conversations with your lawyer, not the texts themselves: sending a text to your lawyer doesn't stop the prosecution getting the same message elsewhere. Texts you send a friend about the case aren't protected, and the office warns that "All conversations from the jail with anyone other than your lawyer are recorded." If you're in custody, ask your lawyer how to reach them confidentially.
If police ask for your phone or messages
So export the texts for your lawyer, not for the detective, the prosecutor or the person on the other side of the conversation. If police ask you to hand over your phone or your messages, or to agree to a search, say you want to talk to your lawyer first. A warrant, subpoena or court order is different: it can be binding, so contact your lawyer right away about what it requires.
Contact with the other person or a witness
Follow any release or no-contact order, and talk to your lawyer before you contact the other person or a witness about the case, yourself or through anyone else; let your lawyer handle any request for their messages. A federal court can order a defendant, as a condition of release, to "avoid all contact with an alleged victim of the crime and with a potential witness who may testify concerning the offense", and using intimidation, threats or corrupt persuasion to get someone to hold back testimony or to change, hide or destroy evidence is a separate federal crime (18 U.S.C. § 1512).
What happens to the texts after your lawyer has them
Your lawyer reads them, decides which help and which hurt, and decides whether to use any. Using them can have a cost: in federal court and in California, for example, the defense must let the prosecution see what it plans to use at trial.
- Federal court: if the defense asks for the government's documents and the government complies, the defense must let the government, when it asks, inspect and copy documents and data in the defense's possession, custody or control that "the defendant intends to use" in its case-in-chief at trial (Rule 16(b)(1)(A)).
- California: the defendant and their attorney must disclose to the prosecutor "Any real evidence which the defendant intends to offer in evidence at the trial" (Penal Code § 1054.3).
That's why the choice belongs to your lawyer. Give them everything, and let them decide.
If the prosecution uses part of a conversation
If the prosecution uses part of a conversation against you, your lawyer can ask to bring in more of it. Under Federal Rule of Evidence 106, when a party introduces part of a statement, the other side "may require the introduction, at that time, of any other part — or any other statement — that in fairness ought to be considered at the same time." It "may do so over a hearsay objection." With the surrounding messages in hand, your lawyer can see what's missing.
If the police have your phone
Then you can't export from it. Your lawyer can ask what investigators copied from it and seek access through discovery. In federal court, the government must let the defense inspect and copy data it holds, on request, if it "was obtained from or belongs to the defendant" (Rule 16(a)(1)(E)), though the court can, for good cause, "deny, restrict, or defer discovery or inspection" (Rule 16(d)). States have their own discovery rules.
Your messages may also be on another device. If Messages in iCloud syncs them to a Mac, TextPort for Mac exports them there for free, and a backup of the iPhone on a Windows PC can be read with TextPort for Windows. Ask your lawyer before you open the account or the backup.
If you're the victim or a witness
The same export works the other way round. Keep everything and export the whole conversation for the dates involved. If the messages could implicate you in anything, talk to your own lawyer before you hand them over. Otherwise, ask the detective or the victim advocate at the prosecutor's office how they want to receive them, and keep the original messages on your phone. If you're being harassed or threatened by text, see how to report harassing text messages and how to get a restraining order.
How a court decides the texts are real
Before texts are used as evidence, someone has to show they're what they claim to be. Federal Rule of Evidence 901 asks for "evidence sufficient to support a finding that the item is what the proponent claims it is": for example, testimony from someone who sent or received the messages, or distinctive features of the messages themselves. A TextPort PDF shows the messages you imported, and one made from a screen recording is read from the recording, so check it against the phone, keep the originals and tell your lawyer about any gaps. If authenticity is fought over, your lawyer may want an expert to examine the phone itself. More in how to authenticate text messages for court.
Saving the texts as one dated PDF

TextPort turns a conversation into one PDF on your iPhone, with no computer, ready to send to your lawyer.
- iMessage and SMS come in through the TextPort Shortcut (iOS 26.4 or later), word for word with each message's date and time, for the date range you pick. On an older iOS version, record your screen while you scroll and TextPort reads the messages from the recording; check them against your phone before you export.
- WhatsApp comes in from WhatsApp's own Export Chat file, LINE and KakaoTalk chats from their own export files, and Instagram and Messenger chats from the export Meta sends you. Signal, Snapchat and other apps come in from screenshots or a screen recording. The date picker isn't available for those, so capture the dates you need.
- The export is a PDF with the sender, date and time above every message and numbered pages, a CSV spreadsheet your lawyer can sort and search, or plain text. Photos from iMessage and WhatsApp chats print in the PDF. For a long thread, the Transcript layout numbers every message, so you and your lawyer can point to "message 214."
Frequently asked questions
-
Ask your lawyer which conversations and dates they want and how to send them. Then use TextPort, an iPhone app (TextPort on the App Store): import each conversation, pick the dates, tap Export and choose PDF, and send the file only to your lawyer, the way they ask. Every message shows the sender, date and time. TextPort is free to download and imports your first 3 conversations free; exporting needs a subscription. With no iPhone at hand, TextPort for Mac reads the Messages on a Mac for free.
-
Talk to your lawyer first. The San Francisco Public Defender tells clients: "It is very important that you do not talk to anyone about your matter, including the police, without a lawyer being present." If police ask you to hand over your phone or your messages, or to agree to a search, say you want to talk to your lawyer first. A warrant, subpoena or court order is different: it can be binding, so contact your lawyer right away about what it requires.
-
No. Destroying or hiding evidence can be a crime of its own, and in some places even before an investigation starts. Under federal law, knowingly destroying or altering a record to obstruct a federal investigation, or one you expect, carries up to 20 years in prison. In Texas, destroying or concealing a record to keep it from being used as evidence is a third-degree felony when you know an investigation or case is pending, or know that an offense was committed and mean to keep the record out of a later investigation or case about it. In California, willfully destroying or erasing something you know is about to be produced in evidence, to keep it out, is a misdemeanor. Keep everything, don't edit or unsend messages, and tell your lawyer what's on the phone.
-
Not because you gave them to your lawyer: your conversations with your lawyer are confidential. But sending texts to your lawyer doesn't hide them, and the prosecution can still get the same messages elsewhere, for example from the other person's phone or with a warrant. And if the defense plans to use texts at trial, discovery rules can require showing them to the prosecution first: in federal court once the defense has asked for the government's documents, the government has complied and it asks in return, for what the defense intends to use in its own case, and in California for any real evidence the defense intends to offer at trial. Your lawyer decides which texts to use.
-
Your lawyer can ask what investigators copied from it and seek access through discovery. In federal court, the government must, on request, let the defense inspect and copy data it got from the defendant or that belongs to them, though the court can restrict or delay that for good cause. State rules differ, so ask your lawyer. If your messages also sync to a Mac through Messages in iCloud, TextPort for Mac can export them there, but ask your lawyer before you open the account on another device.
-
They show only what was on the screen. If one side uses part of a conversation, the other side can ask to bring in the other parts that fairness requires (Federal Rule of Evidence 106 in federal court), so your lawyer needs the surrounding messages. Give your lawyer the whole conversation for the dates involved, with the date and time on every message, and let them pick what to use.
Related articles
- How to Submit Text Messages as Evidence When You Represent Yourself Representing yourself? Print your texts from an iPhone or Mac, label them as exhibits, serve copies and ask the judge to admit them. Scripts included.
- How to File a Small Claims Case, Step by Step How to sue someone in small claims in CA, TX, FL, NY and WA: the limit, the right court, the legal name, the form, the fee and serving the papers.
- How to Win in Small Claims Court: Prepare Your Case and Evidence Limits and fees in CA, TX, FL, NY and WA, how to organize your evidence and texts, what happens at the hearing, who can appeal, and how to collect.
- How to Produce Text Messages for a Deposition or Discovery Request Answer a request for production of text messages from an iPhone or Mac: deadlines, the form to produce them in, privilege, labeling, and deposition prep.
- Custodial Interference: What It Is and What to Do What custodial interference means in CA, TX, FL, NY and WA, the charges, what police will and won't do, how to get your child back and the proof to keep.
Start exporting your messages
Available for iPhone, Mac, and Windows. No computer required.