# How to extract names, dates and amounts from text with AI

> Pull people, companies, dates, amounts or any custom labels out of text with GLiNER2 in your browser, then export the results as JSON.

- URL: https://www.tooljig.com/blog/how-to-extract-names-dates-and-amounts-from-text
- Category: AI
- Published: 2026-11-24

Entity extraction turns free text into structured facts: who, which company, where, when, how much. Generative chatbots can do it, but they sometimes invent values. An extraction model such as GLiNER2 can only point at spans of your own text, which makes it more reliable for this job, and it runs in your browser in milliseconds.

> Tool: [AI Entity Extractor](https://www.tooljig.com/ai-entity-extractor): Extract people, companies, places, dates, amounts or any labels you name from text with GLiNER2, running in your browser. Export JSON. Free and private.

## Step by step

1. Open the [AI entity extractor](https://www.tooljig.com/ai-entity-extractor) and paste your text.
2. Pick a preset (general, contracts, résumés, personal data) or choose **Custom labels** and type your own, such as `drug, dosage, side effect`.
3. Click **Extract entities**. The first run downloads the model once.
4. Review the highlights. Each match shows its label and confidence.
5. Move the confidence slider: lower finds more, higher gives fewer false positives.
6. Copy or download the JSON, which includes the exact character offsets of each entity.

## Why labels are just words

GLiNER2 reads the label names and their short descriptions as part of its input, then scores every span of up to eight words against each label. That is why it handles types it was never trained on: "invoice number" and "dosage" are understood from the words themselves. Good labels are short and concrete; a description such as "a payment card number" helps more than a code like `PAN`.

## Three related jobs

| Job | Tool | What comes out |
|---|---|---|
| Highlight entities | [Entity extractor](https://www.tooljig.com/ai-entity-extractor) | Spans with labels and confidence |
| Mask personal data | [PII redactor](https://www.tooljig.com/ai-pii-redactor) | The same text with [EMAIL], [PHONE]… |
| Fill a schema | [Data extractor](https://www.tooljig.com/ai-data-extractor) | One JSON object with your fields |

> **Note:** The PII redactor combines the model with exact patterns for emails, phone numbers, card numbers and IP addresses, because each catches cases the other misses.

## FAQ

### Which languages work?

The multilingual GLiNER2 model handles over 100 languages, including mixed-language text.

### How long can the text be?

Any length. Long texts are processed in overlapping windows of about 180 words and the results are merged.

### Is the text sent to a server?

No. The model runs in your browser and the text stays on your device.
