A book with a padlock, for a locked notebook, private docs and restricted reading. On a 24×24 grid in stroke, two-tone, duotone and fill, free under MIT.

FilesNewUnreleasedAdded
Drawn byKeyline Icons
16
20
24 px
32
24px
2px
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
  <path d="M20 9L20 5C20 3.3431 18.6569 2 17 2L7 2C5.3431 2 4 3.3431 4 5L4 20M9 22L6 22C4.8954 22 4 21.1046 4 20C4 18.8954 4.8954 18 6 18L9 18M8 6L8 14M14 17L19 17C19.5523 17 20 17.4477 20 18L20 21C20 21.5523 19.5523 22 19 22L14 22C13.4477 22 13 21.5523 13 21L13 18C13 17.4477 13.4477 17 14 17ZM14.5 17L14.5 15C14.5 13.8954 15.3954 13 16.5 13C17.6046 13 18.5 13.8954 18.5 15L18.5 17"/>
</svg>

Also called

What someone searching for this drawing would have typed instead. These are the words the browser's search matches on.

  • locked book
  • private
  • restricted
  • secure docs
  • diary
  • read only

Related icons

Closest to book-lock first: its name counts most, then what people search for it by, then the rest of the Files shelf.

FAQ

Answered from book-lock's own facts: its shelf, the styles it was drawn in, its siblings and its dates.

What is the book-lock icon for?
A book with a padlock, for a locked notebook, private docs and restricted reading. It is filed under Files in Keyline Icons, drawn on the same 24×24 grid as the rest of the set. People look for it as locked book, private, restricted, secure docs, diary and read only, and the browser's search matches all of those.
What styles does the book-lock icon come in?
All four: stroke, two-tone, duotone and fill. They are drawn from the same geometry, so swapping style never moves anything.
Is there a square or circle version of book-lock?
No. book-lock is drawn as a bare glyph, and the set has no boxed variant of it.
What other icons go with book-lock?
book, lock, book-check, book-open, book-x and book-plus, and 12 more, all shown below. Closest to book-lock first: its name counts most, then what people search for it by, then the rest of the Files shelf.
How do I import book-lock in React?
<BookLock /> is the component, and the style decides the module: stroke from "@keyline-icons/react", two-tone from "@keyline-icons/react/two-tone", duotone from "@keyline-icons/react/duotone" and fill from "@keyline-icons/react/fill". It takes the usual SVG props plus a size, so <BookLock size={16} /> and className="size-4" both work, and there is no provider or theme to set up.
Where is the book-lock SVG?
icons/stroke/book-lock.svg, icons/two-tone/book-lock.svg, icons/duotone/book-lock.svg and icons/fill/book-lock.svg in the repository, normalised: no wrapper, no ids and no classes to strip out. The tabs above hand you the same drawing as SVG or JSX without the download, and neither needs an install.
When was book-lock added to the set?
Added 25 Nov 2026. It is not in a tagged release yet: it is on the site and in the repository, and the next version will carry it.

Questions about the set rather than about this drawing are answered where they belong. The home page covers what the set is, how the three styles differ, why some icons come boxed and where the Figma file is; installing the set in a shadcn/ui project covers the React package, the CLI and using an icon without React. The MIT licence is stated in the footer of every page.