Camera icon (free SVG)
In shortThe camera icon covers taking a photo, uploading a picture, photo galleries and video calls with the camera on. Download this camera 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 camera 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"><rect x="2.5" y="6.5" width="19" height="14" rx="3"/><path d="M8 6.5 9.5 3.5h5L16 6.5"/><circle cx="12" cy="13.5" r="3.8"/></svg>React component
export default function CameraIcon({ 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}
>
<rect x="2.5" y="6.5" width="19" height="14" rx="3" />
<path d="M8 6.5 9.5 3.5h5L16 6.5" />
<circle cx="12" cy="13.5" r="3.8" />
</svg>
);
}CSS mask (recolour with color)
.icon-camera {
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%3Crect x='2.5' y='6.5' width='19' height='14' rx='3'/%3E%3Cpath d='M8 6.5 9.5 3.5h5L16 6.5'/%3E%3Ccircle cx='12' cy='13.5' r='3.8'/%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%3Crect x='2.5' y='6.5' width='19' height='14' rx='3'/%3E%3Cpath d='M8 6.5 9.5 3.5h5L16 6.5'/%3E%3Ccircle cx='12' cy='13.5' r='3.8'/%3E%3C/svg%3E") no-repeat center / contain;
}Image tag
<img src="https://mumshadjawad.com/svg-creator/icons/camera-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
- photo, take picture, gallery, profile photo
- 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 310 B · filled 318 B · duotone 411 B · glyph 246 B
- Licence
- Free for personal and commercial use, no attribution required
- Collections
- media icons