Text to HTML
Input
Mode
Heading style
Text options
Output
This will be heading
- This will be list item under heading.
This will be paragraph text.
This will be another paragraph.
- This will be list item 1
- This will be list item 2
- This will be list item 3
<h2>This will be heading</h2> <ul><li>This will be list item under heading.</li></ul> <p>This will be paragraph text.</p> <p>This will be another paragraph.</p> <ul><li>This will be list item 1</li><li>This will be list item 2</li><li>This will be list item 3</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": "This will be heading\nThis will be list item under heading.\n\nThis will be paragraph text.\n\nThis will be another paragraph.\n\n- This will be list item 1\n- This will be list item 2\n- This will be list item 3",
"mode": "web",
"output": "html",
"options": {
"headingStyle": "h2",
"detectHeadings": true,
"detectLists": true,
"detectColonLabels": false
},
"transforms": {}
}
JSONResponse shape
{
"data": {
"output": "<p>...</p>",
"format": "html"
},
"meta": {
"wordsProcessed": 42
}
}Request payload
{
"text": "This will be heading\nThis will be list item under heading.\n\nThis will be paragraph text.\n\nThis will be another paragraph.\n\n- This will be list item 1\n- This will be list item 2\n- This will be list item 3",
"mode": "web",
"output": "html",
"options": {
"headingStyle": "h2",
"detectHeadings": true,
"detectLists": true,
"detectColonLabels": false
},
"transforms": {}
}Don't have an API key yet?
Get one and start formatting thousands of words with no charges.
Plain Text
Web