---
title: "Import data into PDF form using Instant JSON | Nutrient SDK"
canonical_url: "https://www.nutrient.io/guides/web/forms/fill-form-fields/import-from-instant-json/"
md_url: "https://www.nutrient.io/guides/web/forms/fill-form-fields/import-from-instant-json.md"
last_updated: "2026-06-08T14:31:27.888Z"
description: "Use this guide to import form data into browser-authored PDF forms with Instant JSON, the default internal format for persistence and sync workflows."
---

# Import data into PDF forms using Instant JSON

With Nutrient Web SDK, it’s possible to set form field values in a document by importing them as Instant JSON.

Use this format when your app needs Instant JSON for internal persistence and syncing.

If you need external interoperability, [import from XFDF](https://www.nutrient.io/guides/web/forms/fill-form-fields/import-from-xfdf.md). For collaborative server-backed workflows, use [Document Engine](https://www.nutrient.io/guides/web/forms/submit-or-save/to-server-backed.md).

```js

NutrientViewer.load({
	instantJSON: {
		format: "https://pspdfkit.com/instant-json/v1",
		formFieldValues: [
			{
				name: "Form Field 1",
				value: "Text for form field 1",
				type: "pspdfkit/form-field-value",
				v: 1
			}
		]
	}
});

```

The snippet above will prefill the form field named "Form Field 1" with the text "Text for form field 1".

You can also import form field values as Instant JSON using document operations, available with the Document Editor license component:

```js

instance.applyOperations([
	{
		type: "applyInstantJson",
		instantJson: {
			format: "https://pspdfkit.com/instant-json/v1",
			formFieldValues: [
				{
					name: "Form Field 1",
					value: "Text for form field 1",
					type: "pspdfkit/form-field-value",
					v: 1
				}
			]
		}
	}
])

```
---

## Related pages

- [Adding an image to a PDF form using JavaScript](/guides/web/forms/fill-form-fields/add-image.md)
- [Attach a file to a PDF form using JavaScript](/guides/web/forms/fill-form-fields/attach-a-file.md)
- [Detecting user inputs in PDF forms](/guides/web/forms/fill-form-fields/detect-user-input.md)
- [Dynamic font loading in PDF forms using Nutrient Web SDK](/guides/web/forms/fill-form-fields/dynamic-font-loading.md)
- [Headless form fill](/guides/web/forms/fill-form-fields/headless.md)
- [Import data into PDFs from a database](/guides/web/forms/fill-form-fields/import-from-database.md)
- [Customizing PDF form permissions](/guides/web/forms/fill-form-fields/permissions.md)
- [Import data into PDF form using Web SDK with Document Engine](/guides/web/forms/fill-form-fields/import-from-server-backed.md)
- [Import data into PDF forms using XFDF](/guides/web/forms/fill-form-fields/import-from-xfdf.md)
- [Fill PDF forms programmatically using JavaScript](/guides/web/forms/form-filling.md)
- [Fill PDF form fields using our JavaScript viewer UI](/guides/web/forms/fill-form-fields/using-the-ui.md)

