Chat history can hold a prompt or reply you want to keep after a conversation ends. LM Studio can export a chat as a Markdown file you can read outside the app. The Markdown export opens the GNOME save dialog on Ubuntu, where choosing a folder can collapse the filename field to a pencil icon.
Markdown keeps the messages in editable text. The Export menu introduced in LM Studio 0.4.0 also lists PDF and a formatted prompt saved as a .txt file.
If you plan to continue the conversation in LM Studio or reuse its attachments, keep the original chat and any source files you still need.
Steps to export a chat from LM Studio:
- Open the three-dot menu beside the conversation you want to export in the Chats sidebar.

- Select Export from the chat menu.

- Select Export as Markdown (.md).

- Choose a local folder such as Documents in the save dialog.

- Click the pencil beside the filename if the field is collapsed.
If the filename field is already open, you can go straight to editing.
- Replace the part of the filename before the existing
.mdsuffix with an unused name such asbanana-chat.After clicking the pencil in Documents, only the text before
.mdis selected.
- Click Save.

- Click Open File on the export confirmation.
If the confirmation has closed, open the saved
.mdfile from its folder in your text editor. - Confirm the saved User and Assistant sections match the prompt and reply in the original chat.
