# AI Data Extractor (Text to JSON)

> Turn invoices, emails and notes into clean JSON with the fields you define, using Liquid AI's LFM2 Extract model in your browser. Nothing is uploaded.

- URL: https://www.tooljig.com/ai-data-extractor
- Category: [On-device AI](https://www.tooljig.com/category/ai.md)
- Runs: On-device AI in the browser (WebGPU or WebAssembly); nothing uploaded
- Price: free, no account needed

## What it does

Define the fields you need (invoice number, total, due date, contact email…) and a 350M-parameter model fine-tuned for extraction fills them from unstructured text. The output is repaired and checked against your field types, so numbers come back as numbers and missing values as null instead of invented ones. The model runs inside your browser tab. Its weights download once from Hugging Face and can stay on your device; your text and files are never uploaded.

## How to use it

1. Paste the text.
2. Edit the fields and their types.
3. Extract, then copy or download the JSON.

## Good to know

- Hints such as “ISO code” improve accuracy for ambiguous fields.
- Long texts are cut to the first ~6,000 characters.
- Small models can make mistakes. Check important answers against the source; tool results and page citations make that quick.

## FAQ

### Is my data sent to a server or to an AI company?

No. Inference runs locally with ONNX Runtime in your browser. The only network traffic is the one-time model download from Hugging Face; nothing you type or open is transmitted.

### How big is the download, and does it happen every time?

The first run downloads the model once (about 250–600 MB depending on the model; the exact size is shown before you start). It is kept in your browser's storage by default, so later visits load it in seconds and work offline. You can turn that off or delete stored models on the model manager page.

## Guides

- [How to extract names, dates and amounts from text with AI](https://www.tooljig.com/blog/how-to-extract-names-dates-and-amounts-from-text.md): Pull people, companies, dates, amounts or any custom labels out of text with GLiNER2 in your browser, then export the results as JSON.

## Related tools

- [AI Entity Extractor](https://www.tooljig.com/ai-entity-extractor.md): Extract people, companies, places, dates, amounts or any labels you name from text with GLiNER2, running in your browser. Export JSON. Free and private.
- [JSON Formatter](https://www.tooljig.com/json-formatter.md): Format, validate and minify JSON with clear error messages that point to the line and column. Runs entirely in your browser.
- [JSON to TypeScript](https://www.tooljig.com/json-to-typescript.md): Generate TypeScript interfaces or types from a JSON sample. Nested objects get named interfaces; array items are merged with optional fields.
