Import Sorter
v1.0.0Sort and group import statements for ESM, CJS, and type imports
Sorts and groups import statements into five sections — built-in, external, internal, relative, and type-only — with alphabetical ordering within each group.
How to use- →Paste your unsorted import block into the left panel and click Sort Imports to see the grouped result.
- →The colour-coded legend below the toolbar shows which group each import belongs to.
- →Try a preset from the example picker to see how mixed ESM, CJS, and type imports are separated.
Built-in (node:)External (npm)Internal (@/)Relative (./)Type-only imports
Sorted imports will appear here…