X Ray
The x-ray icon represents a medical imaging technology used to visualize the internal structures of the body.
Exports at 24 × 24 px
Code
X Ray in your framework
In any framework. Customize it above, and the code follows.
export const XRayIcon = (props: React.SVGProps<SVGSVGElement>) => (
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 72 72" fill="none" stroke="currentColor" {...props}>
<defs><path id="SVGp8tmEdJl" d="M30.496 23.365c-.938-1.497-2.041-2.19-4.811-2.19H15.94m40 0H45.795c-2.77 0-3.873.693-4.81 2.19"/><path id="SVGmlRdLbzl" d="M41.228 31.935s11.787.347 10.063-3.82m-10.513-.606s6.47.19 5.523-2.097M40.723 35.65s14.27 2.305 12.633-3.03M40.45 38.95s13.222 6.895 13.31-.325m-14.075 3.063s16.339 14.446 13.355 3.346"/><path id="SVG68ESZ6HC" d="M39.685 41.688S49.5 64.935 52.003 52.173M30.29 31.935s-11.787.347-10.063-3.82m10.513-.606s-6.47.19-5.524-2.097m5.578 10.391s-14.27 2.305-12.633-3.028m12.907 6.175s-13.222 6.895-13.31-.325m14.075 3.063s-16.34 14.446-13.355 3.346"/><path id="SVGHYHReeKe" d="M31.833 41.688s-9.815 23.247-12.319 10.485"/><path id="SVG6EhxpbeQ" d="m36.539 24.826l-.724 19.163l-.874-19.163z"/></defs><rect width="50" height="50" x="11" y="11" fill="#1e50a0" rx="1.923" ry="1.923"/><path fill="#92d3f5" d="M36.053 61c5.608.081 11.973.174 17.098-3.984c7.082-5.746 6.927-15.658 6.805-23.408c-.083-5.292-.24-10.416-4.087-13.69a12.83 12.83 0 0 0-8.521-2.701C43.323 19.9 39.875 21.754 36 21.746h.044c-3.875.008-7.323-1.846-11.348-4.53a12.83 12.83 0 0 0-8.521 2.702c-3.847 3.274-4.004 8.398-4.087 13.69c-.122 7.75-.277 17.662 6.805 23.408c5.125 4.158 11.49 4.066 17.098 3.984z"/><path fill="none" stroke="#61b2e4" strokeMiterlimit="10" strokeWidth="2" d="M36.053 61c5.608.081 11.973.174 17.098-3.984c7.082-5.746 6.927-15.658 6.805-23.408c-.083-5.292-.24-10.416-4.087-13.69a12.83 12.83 0 0 0-8.521-2.701C43.323 19.9 39.875 21.754 36 21.746h.044c-3.875.008-7.323-1.846-11.348-4.53a12.83 12.83 0 0 0-8.521 2.702c-3.847 3.274-4.004 8.398-4.087 13.69c-.122 7.75-.277 17.662 6.805 23.408c5.125 4.158 11.49 4.066 17.098 3.984z"/><path fill="#61b2e4" d="M19.019 34.696c0 9.268 2.901 16.78 6.48 16.78s6.481-7.512 6.481-16.78c0-.434-.018-.97-.043-1.498c-.092-1.932-.843-3.816-2.253-5.141c-4.62-4.34-10.399 1.273-10.579 3.886a12 12 0 0 0-.086 2.753m33.875-2.753c-.18-2.613-5.959-8.227-10.578-3.886c-1.41 1.325-2.161 3.21-2.253 5.141a33 33 0 0 0-.044 1.498c0 9.268 2.902 16.78 6.481 16.78s6.481-7.512 6.481-16.78c.077-.918.048-1.842-.087-2.753"/><path d="M15 12.958a2 2 0 1 1-4 0a2 2 0 0 1 4 0m46 0a2 2 0 1 1-4 0a2 2 0 0 1 4 0M15 59a2 2 0 1 1-4 0a2 2 0 0 1 4 0m46 0a2 2 0 1 1-4 0a2 2 0 0 1 4 0"/><rect width="50" height="50" x="11" y="11" fill="none" stroke="#000" strokeMiterlimit="10" strokeWidth="2" rx="1.923" ry="1.923"/><g fill="none" stroke="#000" strokeLinecap="round" strokeWidth="2"><use href="#SVGp8tmEdJl" strokeLinejoin="round"/><use href="#SVGmlRdLbzl" strokeMiterlimit="10"/><use href="#SVG68ESZ6HC" strokeMiterlimit="10"/><use href="#SVGHYHReeKe" strokeMiterlimit="10"/><use href="#SVG6EhxpbeQ" strokeLinejoin="round"/></g><g fill="none" stroke="#fff" strokeLinecap="round" strokeWidth="2"><use href="#SVGp8tmEdJl" strokeLinejoin="round"/><use href="#SVGmlRdLbzl" strokeMiterlimit="10"/><use href="#SVG68ESZ6HC" strokeMiterlimit="10"/><use href="#SVGHYHReeKe" strokeMiterlimit="10"/><use href="#SVG6EhxpbeQ" strokeLinejoin="round"/></g>
</svg>
);Other libraries
X Ray in 6 more libraries
Each library draws it its own way. Open one to compare.
OpenMoji
More like it
Icons that share its tags, in the same style.
Search OpenMoji
Skip the copy and paste. With Pro, your AI agent finds and installs any OpenMoji icon from a prompt.
Get ProTags
Browse by tag
X Ray is tagged medical, healthcare, hospital and 2 more. Related tags follow; each opens its icons from every library.
Pricing
OpenMoji MCP, with Pro
Ask for X Ray or any of 4,481 OpenMoji icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
FAQ
Frequently asked questions
What the X Ray icon means and where it's used, then how to install, style, label and license it.
The x-ray icon represents a medical imaging technology used to visualize the internal structures of the body. X-rays are a type of electromagnetic radiation that can pass through soft tissues but are absorbed by denser materials like bones. This icon is often used in medical and healthcare contexts to signify diagnostic imaging or medical examination.
The x-ray icon can be found in medical software, hospital information systems, and healthcare applications. For instance, it might be used on platforms like electronic health records (EHR) systems, medical imaging software, or telemedicine platforms to convey that a certain feature or functionality is related to diagnostic imaging.
From a UX perspective, the x-ray icon communicates the idea of looking inside the body to diagnose or examine internal structures. It helps users understand that a certain functionality or feature is related to medical imaging or diagnostics.
X Ray is one of 4,481 icons in OpenMoji, made by OpenMoji and released under CC BY-SA 4.0. It is drawn on a 72 × 72 grid.
Sign in (it's free), then open Get icon, Install with shadcn CLI, and pick your package manager to copy the command. It adds XRayIcon to components/icons/openmoji-x-ray.tsx: one file, a size prop (24 by default) and every SVG prop, with no icon package.
Copy it as React (from Get icon, or the Code section): a typed XRayIcon component you paste into your project, with no package to install. Only the icons you import reach your bundle. It works in Next.js and any React app.
Open Get icon, then Copy as code, and pick Vue, Svelte, Angular, Solid or Preact; the Code section shows each one too. Every version is one self-contained component with the SVG inside, and SVG and data URL copies are there for plain HTML and CSS.
With Pro, the shadcn.io MCP server lets Claude Code, Cursor or any MCP client find the X Ray icon, or any of 4,481 OpenMoji icons, and install it from a prompt.
It's multicolor, so it keeps its own colors.
Set width and height on the component, or a class like size-6. It's drawn on a 72 × 72 grid, so it stays sharp at any size. Customize also sets the size it exports at, its padding and rotation.
Yes. It keeps its own colors in light and dark mode, so check it against both backgrounds. The icon is a vector, so it needs no separate dark asset.
Next to a visible label it's decoration: add aria-hidden="true" so screen readers skip it. Standing alone, as in an icon button, give the button a name instead, like aria-label="X Ray", so screen readers say what it does.
Yes. XRayIcon passes every SVG prop to the svg element, so <XRayIcon aria-hidden="true" /> works, and so do role="img" with aria-label, or a title child, when it carries meaning on its own.
Yes. Open Get icon, then Download file: SVG for code or design tools like Figma; PNG, WebP or JPEG at 512px; or an ICO favicon with 16, 32 and 48px inside. Each one uses what you set in Customize.
Yes, with conditions: CC BY-SA 4.0 asks you to credit the author (OpenMoji), and icons you change must use the same license. The full terms are in the license, linked on this page.
Yes. CC BY-SA 4.0 asks you to credit OpenMoji, and icons you change must be shared under the same license.
Yes. Copying and downloading it is free, and the shadcn CLI install only needs a free account.
6 other libraries draw an icon called X Ray. The Other libraries section on this page shows each one, so you can compare them and open the one that fits your style.
Its tags are medical, healthcare, hospital, imaging and diagnostics. Each tag page lists the icons that carry it from every library, which is the quickest way to find a match for X Ray in another set.
OpenMoji draws many icons in several styles: Light next to the default. Open the library and pick a style above the grid to see X Ray's siblings in it.
4.9 out of 5 from 150+ developers
Install X Ray from a prompt
MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.
Get Pro