Book icon (free SVG)
In shortA book means reading, documentation, guides, courses and libraries. It is a good fit for "Docs" links in developer tools. Download this book icon free in four styles as a 24×24 SVG that uses
currentColor; every file is under 1 KB and free for commercial use.Variations
The same book drawn four ways. Open any of them in the editor to recolour it, change the stroke, rotate or export PNG.
Code
Inline SVG (HTML)
<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 5a2 2 0 0 1 2-2h14v15H6a2 2 0 0 0-2 2z"/><path d="M4 20a2 2 0 0 0 2 1.5h14V18"/><path d="M9 7.5h7"/></svg>React component
export default function BookIcon({ size = 24, color = "currentColor", ...props }) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 24 24"
fill="none"
stroke={color}
strokeWidth={2}
strokeLinecap="round"
strokeLinejoin="round"
{...props}
>
<path d="M4 5a2 2 0 0 1 2-2h14v15H6a2 2 0 0 0-2 2z" />
<path d="M4 20a2 2 0 0 0 2 1.5h14V18" />
<path d="M9 7.5h7" />
</svg>
);
}CSS mask (recolour with color)
.icon-book {
display: inline-block;
width: 24px;
height: 24px;
background-color: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h14v15H6a2 2 0 0 0-2 2z'/%3E%3Cpath d='M4 20a2 2 0 0 0 2 1.5h14V18'/%3E%3Cpath d='M9 7.5h7'/%3E%3C/svg%3E") no-repeat center / contain;
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5a2 2 0 0 1 2-2h14v15H6a2 2 0 0 0-2 2z'/%3E%3Cpath d='M4 20a2 2 0 0 0 2 1.5h14V18'/%3E%3Cpath d='M9 7.5h7'/%3E%3C/svg%3E") no-repeat center / contain;
}Image tag
<img src="https://mumshadjawad.com/svg-creator/icons/book-outline.svg" width="24" height="24" alt="">Not sure which to use? See SVG icons in React, SVG icons in CSS and how to change an SVG icon's colour.
Details
- Good for
- docs, guide, course, library, read
- Grid
- 24 × 24, viewBox="0 0 24 24", 2px safe area
- Outline stroke
- 2px, round caps and joins
- Shapes
- 3 elements (outline, classic)
- File sizes
- outline 299 B · filled 307 B · duotone 400 B · glyph 235 B
- Licence
- Free for personal and commercial use, no attribution required
- Collections
- media icons, developer and tech icons