Skip to main content

Instagram line break generator API

Write your caption with blank lines between paragraphs. The generator puts an invisible spacer on each blank line so the gap stays when you paste the caption into Instagram, removes stray spaces at line ends and counts the caption against the 2,200 character limit.

Request​

FieldTypeDefaultDescription
textstring
spacerstring: braille, dot"braille"What fills a blank line: braille (U+2800 Braille blank, shows as an empty line) or dot (a line with ".").
hashtags_to_endbooleanfalseMove the hashtags that end a line to the bottom, after three spacer lines. A hashtag inside a sentence stays where it is.

Call it​

curl -X POST https://postboost.co/app/api/tools/instagram-line-break-generator \
-H 'Content-Type: application/json' \
-d '{"text":"Line one\n\n\nLine two "}'

With a token, send Authorization: Bearer YOUR_API_TOKEN as a default header (how, per SDK).

Response​

{
"text": "Line one\n⠀\n⠀\nLine two",
"count": 21,
"limit": 2200,
"over": false,
"hashtags": 0,
"max_hashtags": 5
}

With MCP​

Connect https://postboost.co/mcp/tools (setup) and ask, for example: Keep blank lines in an Instagram caption with spacer lines, and count it with the PostBoost format-instagram-caption tool.

Errors​

StatusWhen
401The Authorization header holds an invalid token. Leave it out to call as a guest.
413The JSON body is larger than 128 KB.
422A field is invalid; the body lists the errors per field.
429A limit is reached; see limits.