Validate a bookmarks HTML file

Find out why a bookmark import fails: every problem explained with its line number, plus a repaired copy in the standard browser layout. Runs in your browser; nothing is uploaded.

Or paste the file’s source

Choose a file (or try the broken sample) to see the report here.

What the validator checks

Bookmark import errors are rarely explained. A browser says “no bookmarks found”, imports half the file, or shows titles like “Café” and leaves you guessing. This validator reads the file the way a strict importer does and reports every problem in plain language, with the line it found it on. Errors mean the import will fail or lose bookmarks; warnings mean some importers will stumble; notes are things worth knowing before you import.

How to use it

  1. Choose the file that will not import, or paste its source into the box.
  2. Read the verdict and the counts: how many bookmarks and folders were found, and how deep the folders go.
  3. Go through the list from the top; errors come first.
  4. Press Download repaired file to get a copy rebuilt in the standard layout, then import that copy. If the count of bookmarks looks too low, fix the error the report points to in a text editor and validate again.

The problems it finds, and how to fix them

The file is not a bookmark file

The most common cause of a failed import. A Firefox backup ends in .json, and Chrome’s internal profile file called Bookmarks is JSON too; neither is the HTML export importers expect. Use the browser’s “Export bookmarks to HTML” option instead. Pocket’s HTML export uses <ul> lists rather than the bookmark layout; for Marqly, import Pocket’s list.csv instead, and see the Pocket migration guide. A web page saved with “Save page as” is not a bookmark file either, even if it is full of links; the link extractor can turn it into a list.

Unclosed tags

A bookmark is <DT><A HREF="…">Title</A>. When the closing</A> or </H3> is missing, usually after a hand edit or a search-and-replace, an importer can swallow the next entries into one title. The report gives the line; add the closing tag there.

Lists that do not balance

Every folder opens a <DL><p> list and closes it with</DL><p>. If the counts differ, folders after the mismatch end up nested in the wrong place or are dropped. The repaired file rebuilds the lists from the tree the validator read, so they always balance.

One line, thousands of bookmarks

Files produced by scripts or “minified” by an editor often put everything on one line. Browsers always write one entry per line, and importers that read line by line can miss everything after the first entry on each line. Chromium’s HTML bookmark reader, for example, has historically split the file into lines and matched <DT><A and<DT><H3 at the start of each one, in uppercase. The repaired file puts every entry on its own line in uppercase.

Scrambled accents and emoji

If the file has no charset line, an importer has to guess the encoding. Guess wrong and “Café” becomes “Café”. Browser exports declare UTF-8 with<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">; the repaired file includes it. If the titles already look scrambled in the report, the file was saved in another encoding: open it in a text editor and re-save it as UTF-8.

Bookmarks without a usable address

Entries with an empty HREF, or with an address that is not a valid URL (spaces, a broken host), are dropped by strict importers. Bookmarklets (javascript:), Firefox smart folders (place:) and browser pages such aschrome://settings are counted separately: they only make sense inside a browser, and web-based bookmark managers usually import web links only.

Notes: depth, duplicates and empty folders

These never break an import, but they shape the result. Very deep folders get flattened by tools with a depth limit; duplicates come across twice; empty folders arrive empty. Theduplicate bookmark finder and thefolder flattener handle the last two before you import.

What the repaired file changes

The repair does not guess. It writes back exactly the bookmarks and folders the validator read, with their titles, addresses, dates, icons, tags and descriptions, in the layout browsers export: the NETSCAPE DOCTYPE, a UTF-8 charset line, uppercase tags, one entry per line and balanced lists. Anything the parser could not read is not invented, which is why the report tells you the counts. Compare them with the number of bookmarks your browser shows.

Importing the result into Marqly

Marqly imports bookmark HTML files from any browser, as well as Raindrop HTML exports and Pocket’s list.csv. Import keeps titles, URLs, descriptions, tags and two levels of boards; deeper folders are joined into board names, as the depth note explains. If a file passes here, it is in the format Marqly reads. The step-by-step guide ishow to import Chrome bookmarks.

Related tools

Frequently asked questions

Why does my bookmarks HTML file fail to import?

The usual causes are: the file is not a Netscape bookmark file at all (a JSON backup, a Pocket export, a web page saved as HTML), tags that were never closed, a minified file with every bookmark on one line, a missing UTF-8 charset that scrambles accented titles, or <DL> lists that do not open and close in pairs. The validator checks each of these and points to the line.

What is a valid bookmarks HTML file?

It is the Netscape bookmark format every browser exports: a <!DOCTYPE NETSCAPE-Bookmark-file-1> first line, a UTF-8 META line, a title, and a <DL><p> list in which each bookmark is a <DT><A HREF=…> line and each folder is a <DT><H3> heading followed by its own <DL><p> list. There is no official specification, so the safest file is one that looks exactly like a browser export.

Can the tool fix my file?

It can rewrite it. Download repaired file re-creates the file from the bookmarks the validator could read, in the standard browser layout: DOCTYPE, UTF-8 charset, uppercase tags, one entry per line and balanced lists. It cannot recover bookmarks the parser could not read, so check the counts and the errors list first.

Is my file uploaded when I validate it?

No. The file or pasted text is checked by JavaScript in this browser tab. Nothing is sent to a server, and nothing is stored after you close the page.

Why does Marqly not accept my Pocket HTML file?

Pocket’s HTML export lists links in <ul> and <li> elements, not the Netscape <DL> layout bookmark importers read. For Marqly, import the list.csv file from the same Pocket export instead. Marqly imports browser bookmark HTML, Raindrop HTML and Pocket’s list.csv.

← All free tools