Text formatting tools

Text Formatter

Plain Text to HTML

Input

Mode

Heading style

Text options

Output

Converting plain text to HTML

Paste your unformatted draft. Detect headings and list items automatically. Generate clean paragraph structure. Copy final HTML for your CMS or website builder.

Headings are without dots

  • When a heading is followed by a sentence without new line, it is converted to a list item.

Headings are without dots

When a heading and sentence is separated by a new line, it stays a sentence.

  • But you can add list with – or *
  • You are welcome
<h2>Converting plain text to HTML</h2>
<p>Paste your unformatted draft. Detect headings and list items automatically. Generate clean paragraph structure. Copy final HTML for your CMS or website builder.</p>
<h2>Headings are without dots</h2>
<ul><li>When a heading is followed by a sentence without new line, it is converted to a list item.</li></ul>
<h2>Headings are without dots</h2>
<p>When a heading and sentence is separated by a new line, it stays a sentence.</p>
<ul><li>But you can add list with – or *</li><li>You are welcome</li></ul>

API Call Example

curl -X POST "https://api.textformatter.pro/v1/format" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  --data-binary @- <<'JSON'
{
  "text": "Converting plain text to HTML\n\nPaste your unformatted draft.\nDetect headings and list items automatically.\nGenerate clean paragraph structure.\nCopy final HTML for your CMS or website builder.\nHeadings are without dots\nWhen a heading is followed by a sentence without new line, it is converted to a list item.\nHeadings are without dots\n\nWhen a heading and sentence is separated by a new line, it stays a sentence.\n- But you can add list with - or *\n* You are welcome",
  "mode": "web",
  "output": "html",
  "options": {
    "headingStyle": "h2",
    "detectHeadings": true,
    "detectLists": true,
    "detectColonLabels": true
  },
  "transforms": {}
}
JSON

Response shape

{
  "data": {
    "output": "<p>...</p>",
    "format": "html"
  },
  "meta": {
    "wordsProcessed": 42
  }
}
Request payload
{
  "text": "Converting plain text to HTML\n\nPaste your unformatted draft.\nDetect headings and list items automatically.\nGenerate clean paragraph structure.\nCopy final HTML for your CMS or website builder.\nHeadings are without dots\nWhen a heading is followed by a sentence without new line, it is converted to a list item.\nHeadings are without dots\n\nWhen a heading and sentence is separated by a new line, it stays a sentence.\n- But you can add list with - or *\n* You are welcome",
  "mode": "web",
  "output": "html",
  "options": {
    "headingStyle": "h2",
    "detectHeadings": true,
    "detectLists": true,
    "detectColonLabels": true
  },
  "transforms": {}
}

Don't have an API key yet?

Get one and start formatting thousands of words with no charges.