---
title: "Remove Line Breaks"
method: POST
path: "/api/v1/tools/remove-line-breaks"
tags: ["tools"]
---

# Remove Line Breaks

`POST /api/v1/tools/remove-line-breaks`

## Request

- Base URL: `https://toolforte.com`
- URL: `https://toolforte.com/api/v1/tools/remove-line-breaks`
- Auth: HTTP bearer

Join lines that were broken in the wrong places back into flowing text. Each line is trimmed and blank lines are dropped before the join, and the separator can be a space, nothing, or any string such as a comma. Keeping paragraph breaks treats a blank line as a boundary, so a document keeps its shape instead of becoming one wall of text.

## Request body

- object
  - `text` string
  - `separator` string
  - `keepParagraphs` boolean

## Response `200`

Successful result

- object
  - `ok` boolean
  - `data` object
    - `result` string
    - `linesJoined` integer
    - `paragraphs` integer
    - `breaksRemoved` integer

## Other responses

- `400`: Missing or invalid request fields
- `401`: Invalid or missing API key
- `429`: Monthly plan limit reached

---

[API](https://skmtc.dev/toolforte/apis/toolforte-api.md) · [All operations](https://skmtc.dev/toolforte/apis/toolforte-api/llms.txt) · [OpenAPI document](https://skmtc.dev/toolforte/apis/toolforte-api/revisions/4d814d484dfc?raw)
