# Bookmark Organizer > Clean up a browser's bookmarks export in the browser: duplicate bookmarks and empty folders removed, same-name folders merged, every folder sorted as it was, A to Z, newest first or by website. Download a clean bookmarks file to import back into Chrome, Firefox, Edge, Safari or Raindrop.io, a CSV or Markdown. Free, no sign-up, the file never leaves the device. Not affiliated with any browser maker or Raindrop.io. URL: https://bookmark-organizer.skillsafe.ai/ ## What it does - Input: the HTML bookmarks file a browser exports (the Netscape bookmark file format: DL lists of DT entries, H3 folders, A links with ADD_DATE in seconds), chosen or dropped; a zip holding one (Safari's newer export) is opened in the browser. Folder and link attributes the page does not change (PERSONAL_TOOLBAR_FOLDER, TAGS, ICON, LAST_MODIFIED and others) are written back unchanged; DD descriptions are kept; HR separator lines are left out and counted. - Duplicates: two links are the same page when they match after: scheme http/https treated alike (optional), host lower-cased without "www.", default port dropped, trailing slashes dropped, tracking query tags removed (utm_*, fbclid, gclid, gclsrc, dclid, gbraid, wbraid, msclkid, mc_cid, mc_eid, igshid, yclid, _hsenc, _hsmi, mkt_tok), and the part after # kept unless the visitor chooses to ignore it. Non-web links (bookmarklets, place:, file:) match only exactly. One copy is kept: the first in the file (default) or the newest by ADD_DATE; tags of the removed copies are added to it. Every removed copy is listed with its folder. - Folders: folders with the same name (ignoring case) under the same parent are merged; folders with no bookmark anywhere inside are removed, except a browser's own toolbar or unfiled folder. - Order: as they were, A to Z by title, newest first, or by website; folders first, the browser's own folders before the rest. - Also reported: http links, links with tracking tags (optionally taken out of the saved links), browser-only links, bookmarklets, unnamed bookmarks, the deepest nesting, the biggest folder and the most saved websites. - Output: a bookmarks HTML file in the same format; CSV columns folder, title, url, tags, added, description; Markdown with a heading per folder. Summaries of clean-ups (counts and folder names, never links) are kept in the browser, and in the SkillSafe account when signed in. ## Optional AI step (signed-in, metered) "Sort into folders with AI" sends up to 200 cleaned bookmarks at a time: ids b1..bN in file order, the title (up to 100 characters), the website host and the current folder path; never the full link. Task "sort". The reply is ids only: `folders` ({name of 1-3 words, ids}). The page checks every id, at most 5/8/12 folders (the visitor's choice) of at least 2 bookmarks each with no bookmark in two, names of at most 3 words that are not catch-alls (Misc, Other, Unsorted ...) and not repeated. Bookmarks in no folder go to Unsorted. The download is the cleaned file with one new folder "Sorted by AI " holding the new folders; bookmarks not sent stay where they were. API: https://bookmark-organizer.skillsafe.ai/api.html ## Source The clean-up and the AI folders follow the agent skill @intellectronica/raindrop-api (intellectronica/agent-skills, CC0-1.0): its model of a bookmark library (collections of one subject, an Unsorted collection, duplicates and empty collections cleaned up, HTML import and export). The app calls no Raindrop.io API. The page's own: reading and writing the bookmarks file, the duplicate rules, the downloads and the checks. Examples link to public reference pages on Wikipedia, Wikivoyage, MDN and the Python docs. https://skillsafe.ai/skill/@intellectronica/raindrop-api