Convert PNG to JSON

Convert PNG to JSON to get the text and tables from a screenshot as a structure a program reads rather than a person.

Convert PNG to JSON when the text from a screenshot is meant for a script: it arrives as a structure the code parses, not as a file someone reads line by line.

What happens when you convert PNG to JSON

The file holds a block about the source (name, format, size), a list of pages with the full text and separate lines, and a list of detected tables with a header and rows. A screenshot has one page, and a table appears only when one is distinct on the picture.

The same text is recognised as in a TXT conversion, so quality depends on the capture: small captions and text over a picture read worse. With no text on the picture there is no file and the conversion ends with an error. For reading by eye the PNG to TXT converter is handier; for a table in Excel, the PNG to Excel (XLSX) converter.

How to convert PNG to JSON

  1. Upload your image in PNG.
  2. Select JSON as the result format.
  3. Start the conversion and download the file.

FAQ

How is the file laid out?

At the top level: source details, conversion time, an array of pages with text and lines, and an array of tables. The keys are the same for any source, so the parser is written once.

Does the JSON include word coordinates?

No, text only: pages, lines, and table cells. The placement of the wording on the picture is not kept.

More about the formats

What the format is, how to open it and how it differs from the others.