Prompt Formatter
100% PrivateAI & Prompt ToolsClean up a messy pasted prompt into tidy Markdown with fixed spacing, lists and headings.
Runs entirely in your browser. Your input is not uploaded to Ovatly or anywhere else.
Fenced code blocks (lines between ``` markers) pass through completely untouched, including their spacing.
- 1Paste the messy prompt, however it was copied.
- 2Choose whether label lines become ## headings and whether bullets are normalized.
- 3Review the cleaned Markdown and the list of changes made.
- 4Copy the formatted prompt into your AI tool or prompt library.
Input (with Windows line endings, trailing spaces and four blank lines): Instructions: * Read the file * Write the summary ``` * not a list ``` Details: Be brief. Output: ## Instructions - Read the file - Write the summary ``` * not a list ``` ## Details Be brief. The asterisk inside the code fence is untouched, because it is code, not a list.
- Heading conversion is a heuristic: any short, unindented line ending in a colon becomes a heading. Turn it off for prompts where lines like "Note:" should stay as they are.
- The formatter never joins or splits lines and never changes wording; it only fixes whitespace, markers and label lines.
- Lines inside ``` fences are preserved byte for byte, including trailing spaces, because code and preformatted examples often depend on them.
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.
About this tool
The Prompt Formatter cleans up a messy pasted prompt and turns it into tidy Markdown: trailing spaces trimmed, runs of blank lines collapsed, bullet markers normalized to a single style, numbered list spacing fixed, and short label lines ending in a colon turned into ## headings. Its most important rule is what it does not touch: anything inside fenced code blocks passes through exactly as written, spacing included.
Related tools
Part of Ovatly's free tools in AI & Prompt Tools.