If you have ever provisioned a SharePoint site by hand-writing PnP PowerShell, debugging a malformed Provisioning XML, or copying field definitions between four lists, you know the cost: one typo in an InternalName breaks the whole script, and the script you write for one tenant rarely runs cleanly on the next.
PnP List Generator replaces that workflow with a single canvas. Drag a Choice field, name it once, and ship the same schema as PnP PowerShell, Site Script, PnP Provisioning XML, a Power Automate solution, and a portable JSON backup – regenerated from the same source whenever the design changes. Free, browser-only, no install.
Drag field types onto list cards and arrange lists spatially. The relationship between Orders and Customers is something you see, not something you remember from a 400-line script.
JSON, PnP PowerShell, Site Script, PnP Provisioning XML, and Power Automate. Add a column on Monday, regenerate the PowerShell on Tuesday, regenerate the Site Script on Wednesday – they stay in sync because they come from the same canvas.
Inherited a tenant nobody documented? Point PnP List Generator's REST Import at the site, paste the JSON response, and every list, field, and lookup lands on the canvas – ready to document, modify, or redeploy elsewhere (see §7.4).
Set an App Code once and every internal name gets the prefix automatically. Eliminates the most common SharePoint deployment bug – collisions and typos in InternalName – before they reach production.
Paste 200 rows from Excel, point at a CSV, or type directly into the data grid. Data is included in PowerShell and Power Automate output, so dev environments come up usable on day one.
Load built-in templates (E-commerce, Project Management, CRM, Inventory) or save your own. 50-step undo / redo means you can refactor without fear.
In the next two pages you'll go from an empty canvas to a working PnP PowerShell script – about ninety seconds, no install required. The first section maps out the interface; the second walks the seven clicks that make a list real.
The interface is divided into four main areas:
| Area | Location | Purpose |
|---|---|---|
| Toolbar | Top bar | App Code field, Add List button, output format buttons, search box, undo/redo |
| Field Palette | Left sidebar | 14 draggable field types (Text, Number, Choice, Lookup, etc.) |
| Canvas | Center | Visual workspace with draggable list cards and relationship lines |
| Output Sidebar | Right (on demand) | Generated code with syntax highlighting, copy and download buttons |
When you first open the application, the canvas shows an empty state with quick-start buttons and tips.
Click Load Example to populate the canvas with a complete 7-list e-commerce schema, including lookup relationships, content types, views, and sample data.
TC). It is prepended to every internal field name. The input accepts up to two characters and is auto-uppercased – type my, you'll see MY.Ctrl+N adds a list, Ctrl+J shows the JSON output, Shift+? opens the full shortcut list. Work is auto-saved to your browser every second – Ctrl+S just makes the save explicit.
Each list on the canvas represents a SharePoint list. Fields are added by dragging from the palette, and every property can be configured through settings panels.
A note on terminology: SharePoint's UI uses both field and column for the same thing. We use them interchangeably; you'll see Add Column on the dialog and Field Settings on the gear-icon panel because that's what the underlying tool labels them.
Every field type carries its SharePoint type, internal-name prefix, validation rules, form visibility, and column-formatting JSON together – so when you regenerate the deployment script, none of those settings ever fall off the back of the truck.
| Type | SP Type | Key Options |
|---|---|---|
| Text | Text | Max length (255 default) |
| Note | Note | Number of lines, append-only |
| Rich Text | Note (RichText) | Full HTML editing |
| Integer | Integer | None |
| Number | Number | Min, max, decimals, percentage |
| Currency | Currency | Min, max, decimals |
| Yes/No | Boolean | Default value |
| Date & Time | DateTime | Date only or date+time, friendly format |
| Choice | Choice | Options list, fill-in choice |
| Multi-Choice | MultiChoice | Options list, fill-in choice |
| Lookup | Lookup | Target list, multi-value (display column is always Title) |
| Hyperlink | URL | None |
| Person | User | Multi-value, selection mode/group |
| Geolocation | Geolocation | GPS coordinates (limited support in modern lists) |
Each list card displays the list name, toolbar buttons, fields, and views. Below is the Products card from the e-commerce example:
Click the gear icon on any field to open its advanced settings – form visibility, validation formulas, JSON column formatting, unique constraints, and every type-specific option (Number of Lines for Note, Allow Multiple for Lookup, Min/Max for Number, Selection Mode for User, etc.). All of these travel with the field into every generated output. In raw PnP PowerShell each one would require a separate cmdlet call after the field is created; here they are applied in the right order automatically.
| Setting | Description | Output |
|---|---|---|
| Show in Display Form | Show this field when viewing an item | PS1 + XML |
| Show in Edit Form | Show this field when editing | PS1 + XML |
| Show in New Form | Show this field when creating new items | PS1 + XML |
| Custom Formatter | JSON column formatting definition | PS1 |
| Validation Formula | Formula to validate field values | PS1 + XML |
| Validation Message | Message shown when validation fails | PS1 + XML |
| Enforce Unique | Prevent duplicate values | PS1 + XML |
Lookup fields create a link between two lists. The canvas draws the relationship line so you can see, before you deploy, which list points where – the bug-hunt that normally only surfaces after Add-PnPField -Type Lookup fails because the target list was created in the wrong order. PnP List Generator also orders list creation in the generated PowerShell so lookup targets always exist first.
The canvas draws a connecting line between the two lists when the lookup is set. Hovering over the line highlights both cards.
| Action | How |
|---|---|
| Move a list | Drag the list card header |
| Zoom in / out | Click the zoom buttons in the canvas toolbar |
| Auto-arrange | Click Auto-Arrange in the canvas toolbar |
| Collapse a list | Click the ⇅ button on the card header |
| Edit fields in bulk | Click the pencil icon on a card – opens a tabular editor for all fields at once |
| Re-import a saved JSON | Import in the toolbar – paste a previously exported JSON to round-trip a design |
| Wipe the canvas | Clear in the toolbar (asks for confirmation) |
Right-click any list card to open its context menu:
| Menu item | What it does |
|---|---|
| Manage Data | Open the data grid for this list |
| List Settings | Configure versioning, security, content types |
| Manage Views | Add, edit, or remove list views |
| Duplicate List | Clone the list with all its fields and settings |
| Export as JSON | Download this single list as a JSON file |
| Delete List | Remove the list (asks for confirmation) |
Each list can be configured with SharePoint settings for versioning, security, content types, and more. Click the gear icon on the card header or right-click → List Settings.
| Setting | Description | Output |
|---|---|---|
| Enable Versioning | Track changes with version history | All |
| Max major versions | Maximum number of major versions retained | PS1 + XML |
| Minor Versions | Track draft versions (0.1, 0.2, etc.) | All |
| Content Approval | Require approval before items become visible to readers | All |
| Show on Quick Launch | Add the list to the site's left navigation | PS1 + XML |
| Attachments | Allow file attachments on items | PS1 + XML |
| Folders | Allow creating folders in the list | All |
| Read / Write Security | Limit users to seeing or editing only items they created | PS1 + XML |
| Experience | Force Classic, force Modern, or let SharePoint decide | PS1 + XML |
| Disable Grid Editing | Prevent inline Quick Edit | PS1 + XML |
| Require check-out | Require check-out before editing | All |
| Hidden | Hide from site navigation and contents | All |
Content types deploy fields as reusable site columns bundled in a content type, rather than as list-scoped columns – the recommended approach when the same columns are reused across multiple lists or sites.
In raw PnP PowerShell, switching a list from list-scoped fields to a content-type-based deployment means rewriting the script: remove the list-field cmdlets, add Add-PnPField at site scope, then New-PnPContentType, Add-PnPFieldToContentType, Add-PnPContentTypeToList, in that exact order. Tick one box here and the generator does it for you, and re-does it on every regeneration.
The generated output will then:
Views control how list data is displayed. Each list can have multiple views with different columns, filters, and aggregations.
Click the views badge on a card header or right-click → Manage Views.
Aggregations display summary values (totals, averages, counts) at the bottom of a view column. Add them in the View Editor under the Aggregations section.
| Function | Description | Applies to |
|---|---|---|
| COUNT | Number of items | Any column |
| SUM | Total of all values | Number, Currency |
| AVG | Average value | Number, Currency |
| MIN | Smallest value | Number, Currency, Date |
| MAX | Largest value | Number, Currency, Date |
| STD | Standard deviation | Number, Currency |
| VAR | Variance | Number, Currency |
Paste a SharePoint List Formatting JSON definition into the View Formatting JSON field in the view editor – same JSON SharePoint expects under Format current view. (This is the view-level equivalent of the field-level Custom Formatter in §3.3.) View-formatting JSON normally lives in a Gist somewhere and gets pasted into the modern UI by hand on every tenant; store it once here and it ships with every regenerated PowerShell script.
Sample data travels with the schema into PowerShell, PnP XML, and Power Automate output. Use it to ship demo content to a customer tenant, seed lookup target lists so a dev environment is usable on day one, or build a 200-row test dataset once and re-deploy it every time you blow away the dev site.
Click the data badge on a card header (shows the row count) or right-click → Manage Data.
The grid displays all fields as columns. Click a cell to edit its value. The toolbar provides buttons to add rows, import CSV, paste data, import from REST API, and clear all data.
Red;Blue).Copy a range of cells from Excel (including headers), then click Paste Data in the data grid toolbar. PnP List Generator matches column headers to field display names automatically.
You can also use Ctrl+V while the data grid is open. Use Tab, Enter, and arrow keys to navigate between cells.
Click REST Import in the data grid to import data from a live SharePoint list. This uses the same REST API workflow described in §7.4.
Add-PnPListItem) and Power Automate (as list item creation actions) output. JSON export always includes data. Site Script output does not support data.
Click an output format button in the toolbar to generate deployment code. The output sidebar opens with syntax-highlighted code plus copy and download buttons.
The same canvas powers all five generators. Add a column on Monday, regenerate the PowerShell on Tuesday, regenerate the Site Script for the hub-site team on Wednesday – they stay in sync because they come from the same source of truth.
Five buttons, five different jobs. Pick the one that matches who is going to deploy:
| Format | Pick this when… |
|---|---|
| JSON | You want to back up a design, hand it to a colleague, or version-control it in Git alongside the rest of the project. Re-importable via the toolbar's Import button. |
| PnP PowerShell | You have tenant-admin rights and want a re-runnable script – the developer / consultant default. |
| Site Script | You need the schema applied as a Site Design from the SharePoint Admin Center, so site owners can self-serve provisioning without scripts. |
| PnP XML | You're publishing a Provisioning Template to a corporate template gallery, or applying schemas via Apply-PnPProvisioningTemplate in CI/CD. |
| Power Automate | The person deploying has no PowerShell, no admin rights, and no patience – they import a ZIP, hit Run, and the lists appear. |
Each format has its own page in §7.1.1–7.1.5 below; the full feature matrix is in §7.2.
The JSON format exports the complete schema – lists, fields, settings, views, and data – in a single file. Use it to back up a design, version-control it in Git, hand it to a colleague, or load it back into PnP List Generator via the toolbar's Import button to round-trip a design.
Generates a PnP PowerShell script (.ps1) that provisions every list, field, content type, view, and data row. The script uses Connect-PnPOnline, New-PnPList, Add-PnPField, Add-PnPListItem, and related cmdlets, and orders list creation so lookup targets always exist before the lists that reference them.
Generates a SharePoint Site Script JSON. SharePoint caps a single Site Script at 20 actions; PnP List Generator auto-splits larger schemas into Part A, Part B, etc. and offers a Download All button – so the 20-action ceiling stops being a problem you have to solve by hand.
Generates a Power Automate cloud flow definition that provisions lists and fields via the SharePoint REST API. Includes both a JSON preview for inspection and a downloadable solution ZIP for one-click import. The solution name is derived from your App Code (e.g. App Code TC → solution TCCreateSharePointLists).
Generates a PnP Provisioning Template (.xml) covering every list, content type, site column, view, and data row. Apply with Apply-PnPProvisioningTemplate -Path schema.xml, or upload to a corporate template gallery so site owners can self-apply the schema. Carries the most settings of any format – security, versioning, and field-level options that Site Script and Flow can't represent.
What each generator can and cannot include in its output:
| Feature | JSON | PowerShell | Site Script | PnP XML | Flow |
|---|---|---|---|---|---|
| Lists & fields | ✓ | ✓ | ✓ | ✓ | ✓ |
| Content types | ✓ | ✓ | Site columns only | ✓ | ✓ |
| Views | ✓ | ✓ | ✓ | ✓ | ✓ |
| Sample data | ✓ | ✓ | – | ✓ | ✓ |
| List settings | ✓ | ✓ | Partial | ✓ | Partial |
| Field settings | ✓ | ✓ | – | ✓ | Partial |
| Security settings | ✓ | ✓ | – | ✓ | – |
| Downloadable file | .json | .ps1 | .json | .xml | .json or .zip |
TC → solution TCCreateSharePointLists). The flow is imported in the Off state – turn it on after the connection is mapped.
Inherited a tenant with thirty lists nobody documented? Migrating a legacy site to a new tenant? Point PnP List Generator's REST Import at the site, paste the JSON response, and every list – fields, types, lookups – lands on the canvas. From there you can document it, redeploy a copy to staging, or convert it into a Site Script that other site owners can self-apply.
The workflow has three stages – generate the URL, fetch the JSON, paste it back – broken down step-by-step below.
Ctrl+A) and copy (Ctrl+C).Templates turn the second project of the same kind into a thirty-second job. Save your standard "project workspace" design once; load it on every new client tenant. Keyboard shortcuts trim the rest.
| Template | Lists | Description |
|---|---|---|
| E-commerce (Full Example) | 7 | Products, Categories, Suppliers, Orders, Order Items, Customers, Reviews – with content types, views, sample data |
| E-commerce | 3 | Products, Categories, Suppliers with lookups |
| Project Management | 2 | Projects and Tasks with status tracking |
| CRM | 3 | Contacts, Companies, Deals pipeline |
| Inventory | 3 | Items, Warehouses, Stock movements |
The Load Example toolbar button is a shortcut to the E-commerce (Full Example) template above – useful as a guided tour of every feature in five seconds.
Click Save Template to store your current design. Saved templates live in your browser's local storage and appear under My Templates. Clearing browser data removes them, and they don't sync across browsers – for portable backups, use JSON export instead (see §7.1.1).
| Shortcut | Action |
|---|---|
Ctrl+N | Add a new list |
Ctrl+Z | Undo (50-step history) |
Ctrl+Y / Ctrl+Shift+Z | Redo |
Ctrl+J | View JSON schema |
Ctrl+S | Save (the canvas also auto-saves every second) |
Shift+? | Show keyboard shortcuts |
Escape | Close any modal or sidebar |
Tab / Enter / Arrows | Navigate data grid cells |
Ctrl+V | Paste data into grid |