25% off ProSNIPC25OFF

Import & export

Move snippets in and out of SnipCraft as JSON (including imports from the Code Snippets and WPCode plugins) with conflict handling built in.

Export

Select one or more snippets in the list and use the export action to download them as a SnipCraft JSON file. To export the full library in one step, use the bulk-export option from the list toolbar. The file includes each snippet's code, type, scope, tags, priority, and any run-when conditions.

Import

SnipCraft auto-detects the format of the file you upload. Supported formats are:

  • SnipCraft JSON: the native export format, preserving all fields including tags, scope, and conditions.
  • Code Snippets export: imports snippets exported from the Code Snippets plugin.
  • WPCode export: imports snippets exported from the WPCode plugin.

All imported snippets land as disabled, regardless of their enabled state in the source file. Snippets that fail validation are skipped; the import summary reports how many were imported, how many were skipped and why, and any security findings to review before enabling.

Migrating from another plugin

To move an existing snippet library from Code Snippets or WPCode, export your snippets from that plugin as a JSON file, then import the file into SnipCraft. The importer auto-detects which format you uploaded and maps each field to SnipCraft's schema. Review and enable each snippet individually after the import.

Pro

WP-CLI import and export commands are available in SnipCraft Pro. wp snipcraft import <file> imports a JSON file from the given path, and wp snipcraft export writes all standalone snippets to stdout or to a file with --file=<path>.

Folders, tags & search covers organizing snippets before or after an import. Cloud library is an alternative source for ready-made snippets.