Somewhere in an old chat thread sits a prompt that worked. You scroll back, select it, copy it, and paste it into a fresh document, and what arrives is not quite what you wrote. The words are all there, but the surface has taken damage on the way: trailing spaces clinging to half the lines, a bullet list that starts with asterisks and ends with dashes, four blank lines where one would do, and label lines flattened into the text.
None of that damage changes what the prompt says. All of it changes how usable the prompt is. A messy copy is hard to reread, awkward to edit, and risky to share, because nobody can tell where one section ends and the next begins. This guide shows how to clean up a copied prompt with the free Prompt Formatter on Ovatly, and it is honest about the boundary: the tool repairs layout only. It will not rewrite your prompt, restructure it, or rescue a weak instruction.
Contents
- Quick answer
- What a copy out of a chat thread does to a prompt
- The five fixes, matched to the damage
- How to clean up a copied prompt, step by step
- Worked example: the tool's own pasted mess
- What cleanup will not do
- Common mistakes
- Troubleshooting
- FAQs
- Conclusion
Quick answer
Copy the prompt out of the thread exactly as it is and paste it into the Prompt Formatter. Choose whether label lines become ## headings and whether bullets are normalized, review the cleaned Markdown and its change list, then copy the result into your AI tool or prompt library. The formatter trims trailing spaces, collapses runs of blank lines, normalizes bullet markers to a single style, fixes numbered list spacing, and turns short label lines ending in a colon into headings. Your wording survives untouched, and anything inside fenced code blocks passes through byte for byte.
What a copy out of a chat thread does to a prompt
Chat windows are built for reading on the spot, not for exporting text, and the damage a prompt takes on the trip out is predictable:
- Trailing spaces. Lines pick up spaces at the end, invisible on screen, but they pollute every diff and version history afterwards.
- Uneven bullets. The paste preserves a mixture of markers, so one list arrives looking like two or three lists stitched together.
- Blank lines in the wrong places. Runs of empty lines appear where the thread had visual spacing, while in other copies they collapse entirely and sections run into each other.
- Flattened labels. A line like Instructions: did the work of a heading in the original. After the copy it is just another line of text, and the structure it carried is buried.
Notice what is missing from that list: the words themselves. Copying garbles presentation, not content.
The five fixes, matched to the damage
The Prompt Formatter makes five kinds of change, and only five:
- Trailing spaces trimmed. The invisible spaces at line ends are removed.
- Blank lines collapsed. A run of empty lines becomes a single tidy gap.
- Bullet markers normalized. Mixed markers are brought to a single style, so a list reads as one list again.
- Numbered list spacing fixed. Numbering keeps its order; the spacing around it becomes consistent.
- Label lines turned into headings. A short label line ending in a colon, such as Instructions:, can become a
##heading, restoring the structure the copy flattened.
Each fix answers a specific item in the damage list above. Nothing here rewrites or reorders anything, and the tool reports the changes it actually made, so you can verify that instead of trusting it.
How to clean up a copied prompt, step by step
- Open the Prompt Formatter and paste the messy prompt, however it was copied. Do not tidy it by hand first; paste the damage as it is.
- Choose your options: whether label lines become
##headings, and whether bullets are normalized. - Review the cleaned Markdown and the change list, which names what actually happened, such as trimmed trailing spaces or collapsed blank lines.
- Copy the formatted prompt into your AI tool or prompt library rather than back into the thread, so the clean copy becomes the one you reuse.
Worked example: the tool's own pasted mess
The tool's own example starts with a prompt copied in poor shape: Windows line endings, trailing spaces, and four blank lines in the middle. It reads:
Instructions:
* Read the file
* Write the summary
Details:
Be brief.
After formatting, the same prompt comes out as:
## Instructions
- Read the file
- Write the summary
## Details
Be brief.
Every word survived. What changed is layout: the labels became headings, the asterisks became dashes, the four blank lines became one, and the stray spacing disappeared. The example also includes a fenced code block holding the line * not a list; that asterisk comes through untouched, because inside a fence it is code, not a list item, and the formatter knows the difference. That matters for chat copies in particular: prompts that discuss code often carry fenced blocks, and a cleaner that normalized inside them would corrupt what you copied the prompt to preserve.
What cleanup will not do
The limits are as much a part of this tool as the fixes. The formatter never joins lines together and never splits one line into two, so a paragraph the copy broke across lines stays broken until you repair it by hand. It never changes wording, so a vague instruction stays vague and a missing detail stays missing. It will not restructure a prompt: sections stay in their copied order, and nothing is added, removed or rephrased.
Heading conversion also has an edge worth knowing. It is a heuristic: any short, unindented line ending in a colon becomes a heading. That catches Instructions: and Details: reliably, but it will also promote a line like Note: that you wanted to keep as plain text. If your prompt contains such a line, or unfenced code where a line happens to end in a colon, turn the heading option off for that pass, or fence the code first. None of this is a flaw; it is the honest shape of a layout tool, and knowing it lets you predict the result.
Common mistakes
- Expecting cleanup to fix a weak prompt. The words come out identical to how they went in. If the instruction itself is unclear, editing it is a separate, manual job.
- Tidying by hand before pasting. Manual pre-cleaning wastes the effort the tool exists to save, and risks changing wording the formatter would have kept.
- Leaving heading conversion on when a line like Note: should stay plain. Check the options against the prompt in front of you before you run it.
- Pasting code without fences. Unfenced code is treated as ordinary text and can be normalized like anything else. Fence it first, so it passes through untouched.
- Skipping the change report. The report is the audit trail. A quick scan confirms the tool did what you expected, nothing else.
Troubleshooting
A line became a heading when it should not have. That is the heading heuristic at work on a short line ending in a colon. Turn the heading option off and format again.
My code changed appearance. Check whether the code sat inside fences. Fenced blocks pass through byte for byte; unfenced code is treated as ordinary text.
Nothing seemed to change. Your copy may have been cleaner than it looked, or its real problem may be wording rather than layout. The change report lists only fixes that actually happened, and wording is never one of them.
FAQs
Why format a prompt as Markdown at all? Headings and lists make long prompts easier for both models and humans to parse, and a tidy prompt is far easier to version, share and reuse.
Will cleaning up the prompt change what it asks? No. The formatter never changes wording and never joins or splits lines; it only fixes whitespace, markers and label lines, so the cleaned prompt asks exactly what the copied one asked.
What if my prompt has no code fences but contains code? Unfenced code lines are treated as normal text, so a line of code ending in a colon could become a heading. Add fences around code first, or turn the heading rule off.
Does it fix spelling or grammar? No. It is a layout cleaner, not an editor. Every word stays exactly as you wrote it.
What changes does it report? Trimmed trailing spaces, collapsed blank lines, normalized bullets, normalized numbered-list spacing and colon labels turned into headings, whichever actually happened.
Conclusion
A prompt copied out of a chat thread is not damaged goods; it is a good prompt wearing a messy surface. The Prompt Formatter strips that surface back in one pass: spaces trimmed, blank lines tamed, bullets unified, labels standing as headings again, code left strictly alone, and a change list to check it against. Cleanup restores the prompt you had; it does not design the prompt you want. When you are ready to build structure deliberately rather than restore it, the companion guide, How to Format a Prompt With Headings, Lists and Delimiters, covers that side of the work. For more tools and guides like these, see the AI and Prompt Tools guides.