Convert TXT to RST

Turn TXT files into reStructuredText. A reStructuredText document with one paragraph per block of lines, where a block of several lines becomes a line block that keeps every line break and leading indentation.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop TXT files on the dialor turn it to pick what to do

Plain text, ready for Sphinx.Each paragraph becomes a reStructuredText block, and line breaks are kept.

  1. What you get

    One RST file. Each block of lines in the text becomes one paragraph in the document.

    A block of several lines becomes a line block. A line block keeps every line break and the leading indentation of each line, so a poem or an address keeps its lines as you wrote them.

  2. What changes

    Runs of spaces inside a line become one space. Text that you lined up with spaces, such as columns, does not keep its alignment. Only the leading indentation of a line is kept.

  3. Going the other way

    To turn reStructuredText back into plain text, use RST to TXT. To see the other conversions for this format, go to every RST conversion.

TXT and RST.What each format is.

The formats

From · TXT

Plain Text

Plain text with no formatting at all. The smallest, most portable form of a document.

Extensions
.txt .log
MIME type
text/plain
Kind
Text and data
To · RST

reStructuredText

reStructuredText, the markup of Python documentation and Sphinx.

Extensions
.rst
MIME type
text/x-rst
Kind
Text and data

In your code.The same TXT to RST conversion through the API, for your app or your agent.

terminal
$ cv convert report.txt report.rst
$ cv convert report.txt report.rst

Questions.What people ask about TXT to RST.

01OF 04

Yes, for a block of several lines. Such a block becomes a line block that keeps every line break.

Leading indentation is kept in a line block. Runs of spaces inside a line become one space.

No. Runs of spaces inside a line become one space, so columns made with spaces collapse.

No. This conversion has no options, and it produces one file.

More conversions.Other ways in and out of TXT and RST.