Convert image to JSON
Get the text in an image as structured JSON: typed blocks with positions and confidence, ready for code.
Result
Your Markdown or JSON shows up here.
3 free pages a day, no sign-up.
How it works
- Step 1Upload the image
- Step 2We split it into typed blocks
- Step 3Copy the JSON or call the API
Why use this Image to JSON converter
Positions for every block
Bounding boxes let you draw highlights over the image or crop regions.
Typed content
You can tell a heading from a paragraph from a table without parsing Markdown.
Tables as arrays
Table blocks carry rows as arrays plus a Markdown copy.
What people use it for
- Building an app that highlights text on top of an uploaded image
- Filtering text by area, such as only the top half of a form
- Storing image text in a database with its position
- Checking confidence scores to send unclear images for human review
Models that do this well
The free tool picks one for you. With the API you choose, and can set fallbacks so a failed page is retried on the next model.
1Mistral OCRFast document OCR that returns clean Markdown with tables and embedded images.
mistral/mistral-ocr6 credits / page2Azure Document IntelligenceAzure layout model with tables, selection marks and prebuilt invoice and ID readers.azure/document-intelligence15 credits / page3Google Document AIGoogle Cloud OCR with layout parsing and specialised processors.google/document-ai3 credits / page4Amazon TextractAWS OCR with form key-value pairs, tables and per-word confidence scores.aws/textract6 credits / pageDo it with the API
Converting more than a few files? The same conversion is one request. Pick any model, or let auto choose.
curl https://api.ocrrouter.ai/v1/ocr \
-H "Authorization: Bearer $OCRROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "auto",
"file_url": "https://example.com/invoice.pdf",
"format": "json"
}'Questions
More free tools
PDF to MarkdownPDF to textImage to textHandwriting to textPDF to JSONJPG to textPNG to textPhoto to textPicture to textScreenshot to textGIF to textExtract text from imageCopy text from imageExtract text from PDFOCR PDFScanned PDF to textImage to LaTeXPDF to LaTeXImage to MarkdownImage to tablePDF to ExcelPDF to CSVImage to ExcelImage to WordPDF to Word (OCR)Make PDF searchablePDF to HTMLBank statement converterPDF to TXTPDF to Google DocsPDF to linkImage to linkVideo to linkMP3 to linkFile to link