Convert ALTO to TXT

Turn ALTO files into TXT. The words line by line as the page shows them, with a blank line between text blocks and a page break between pages.

Converted in an isolated sandbox on our serversDeleted after 24 hours

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

The words of the page as plain text.Line by line, with blank lines between blocks and page breaks between pages.

  1. What you get

    One TXT file with the words as the page shows them, line by line. A blank line separates one text block from the next.

    When the ALTO file has more than one page, a page break sits between the pages.

  2. Order of the text

    Text in the top margin, such as a running head, comes before the main text of the page. Text in the bottom margin comes after it.

  3. What it leaves behind

    The position of every word is dropped, so the text no longer says where on the page a word sat. Confidence values and styles are dropped too.

    If you need to join several text files afterward, you can merge TXT. For other targets, see every ALTO conversion.

ALTO and TXT.What each format is.

The formats

From · ALTO

ALTO XML

OCR output in the XML that libraries and newspaper archives use, with the position and confidence of every word on the page.

Extensions
.alto.xml
MIME type
application/x-alto+xml
Kind
Text and data
To · 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

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

terminal
$ cv convert report.alto.xml report.txt
$ cv convert report.alto.xml report.txt

Questions.What people ask about ALTO to TXT.

01OF 04

No. Positions are dropped. Only the words remain, line by line.

No. Confidence and styles are dropped along with the positions.

A blank line sits between text blocks, and a page break sits between pages.

Text in the top margin comes before the main text of the page. Text in the bottom margin comes after it.

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