Text formatting tools

Text Formatter

Product Specifications

Input

Mode

Heading style

Text options

Output

Specifications:

  • Material: 92 % polyester, 8 % elastane
  • Weight: 420 g
  • Available sizes: S, M, L, XL
  • Color options: Black, Navy, Olive
  • Care instructions: Wash at 30°C, do not tumble dry
<p><strong>Specifications:</strong></p>
<ul><li><strong>Material:</strong> 92 % polyester, 8 % elastane</li><li><strong>Weight:</strong> 420 g</li><li><strong>Available sizes:</strong> S, M, L, XL</li><li><strong>Color options:</strong> Black, Navy, Olive</li><li><strong>Care instructions:</strong> Wash at 30°C, do not tumble dry</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": "Specifications:\nMaterial: 92% polyester, 8% elastane\nWeight: 420 g\nAvailable sizes: S, M, L, XL\nColor options: Black, Navy, Olive\nCare instructions: Wash at 30°C, do not tumble dry",
  "mode": "ecommerce",
  "output": "html",
  "options": {
    "detectHeadings": true,
    "detectLists": true,
    "detectColonLabels": true,
    "splitAfterSentenceEnd": false,
    "nutritionBlockParsing": false
  },
  "transforms": {}
}
JSON

Response shape

{
  "data": {
    "output": "<p>...</p>",
    "format": "html"
  },
  "meta": {
    "wordsProcessed": 42
  }
}
Request payload
{
  "text": "Specifications:\nMaterial: 92% polyester, 8% elastane\nWeight: 420 g\nAvailable sizes: S, M, L, XL\nColor options: Black, Navy, Olive\nCare instructions: Wash at 30°C, do not tumble dry",
  "mode": "ecommerce",
  "output": "html",
  "options": {
    "detectHeadings": true,
    "detectLists": true,
    "detectColonLabels": true,
    "splitAfterSentenceEnd": false,
    "nutritionBlockParsing": false
  },
  "transforms": {}
}

Don't have an API key yet?

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