Sort bookmarks in every folder at once
Sort a bookmarks export A–Z, Z–A, by date added or by website, through every subfolder, then import it back. Runs in your browser; nothing is uploaded.
Choose a file (or try the sample) to see the sorted result here.
How it works
A bookmarks export is a Netscape bookmark file: nested lists of folders and links. The sorter reads that tree, sorts the entries inside every folder with the rule you pick, and writes a new file in the standard layout browsers export. Sorting is stable: entries that compare equal keep their original order. Names are compared the way people read them, ignoring case and accents, and with natural number order Chapter 2 comes before Chapter 10.
Steps: sort, then put the bookmarks back
- Export your bookmarks to HTML. In Chrome open Bookmarks and lists → Bookmark manager and choose Export bookmarks from its three-dot menu; in Firefox open the Library (Ctrl/Cmd+Shift+O) and use Import and Backup → Export Bookmarks to HTML. For Chrome, see how to export Chrome bookmarks.
- Choose the file above and pick a sort order. Check the preview.
- Press Download sorted file.
- Import the sorted file. Importing adds bookmarks next to the ones you already have and does not replace them; Chrome, for example, puts them in a separate folder when you already have bookmarks. Once you have checked the imported copy, delete the old bookmarks and move the sorted folders into place.
Keep the exported original until you are happy with the result. If sync is on, your other devices pick up the new order after you move the folders.
Which sort order to choose
| Sort by | Good for | Watch out for |
|---|---|---|
| Name, A–Z | Finding a folder or bookmark by scanning the menu | Titles with emoji or symbols sort before letters. |
| Date added | Reading lists and research folders where recent matters | The date is whatever the export says; files built by some tools carry no date or the date the file was made. Undated bookmarks go last. |
| Website | Grouping docs, shops or news sites together | www. is ignored, so www.example.com and example.com sit together; subdomains such as blog.example.com sort as their own name. |
What the sorted file keeps
Everything except the order: titles, addresses, saved dates, favicons, Firefox tags and keywords, and description lines. Separator lines are skipped, because the parser does not keep them. If the counts in the status line look lower than the number of bookmarks in your browser, the export may be damaged; the bookmark file validator shows where.
Related tools
- Bookmark merger: combine several exports into one file, with duplicates removed and an A–Z option.
- Bookmark folder flattener: reduce deep folder nesting.
- Duplicate bookmark finder: find links you saved more than once.
- Bookmarks to CSV & JSON: sort and filter in a spreadsheet instead.
Frequently asked questions
How do I sort all my bookmarks alphabetically, including subfolders?
Export your bookmarks to an HTML file, choose it here, keep Sort by set to Name A–Z, and press Download sorted file. Every folder and subfolder is sorted in one pass. Then import the sorted file into your browser, or replace your bookmarks with it as described in the steps on this page.
Does the browser not sort bookmarks by itself?
Chrome, Edge and Firefox can sort by name, but one folder at a time: the command sorts the entries of the folder you picked and leaves its subfolders in their old order. With hundreds of folders that means hundreds of clicks. This tool applies the same sort to every level of the file in one step.
Can I sort bookmarks by date added?
Yes. Choose Date added, newest first or oldest first. The date comes from the ADD_DATE value browsers write into the export. Bookmarks without a date, which some tools produce, are placed after the dated ones in alphabetical order.
Will sorting change or lose any bookmarks?
Only the order changes. Titles, addresses, dates, icons, tags and descriptions are written back unchanged, and the counts are shown before you download. Two things are not carried over: separator lines, which the parser skips, and the order you arranged by hand, which is the point of sorting.
Why does Bookmarks bar stay at the top?
By default the top level of the file keeps its order, because browsers export their special folders there (the bookmarks bar or toolbar, Other bookmarks, the bookmarks menu). Sorting starts inside them. Untick Keep the top level in place to sort the top level too.
Is my file uploaded?
No. The file is read and sorted by JavaScript in this browser tab. Nothing is sent to a server.





