Icons

Ant Design Code Icon

The Code icon from Ant Design Icons is a fill-style SVG available in IconStash alongside 1,870+ other icons from the same library. Copy its SVG code, export a custom PNG, or download a React component — no account required.

Interactive Customizer

1.5px
128px

About this icon

Use the Code icon

The Code icon from Ant Design Icons fits naturally in document management systems, admin panels, file explorers, CMS dashboards, cloud storage UIs, and PDF viewers. Its fill style makes it ideal for interface components and product UI.

Open it in IconStash to set stroke color via presets or a custom hex value, choose an exact pixel size (16–512px), control stroke width (0.1–3px), and preview against dark, light, or checkered backgrounds before downloading.

Export formats

Copy clean SVG vectors with one click, generate custom-size PNG files from 16px to 512px, export JSX/React components ready to paste into your project, or use the icon as a CSS background-mask for flexible theming.

All exports are based on the same editable vector — so the Code icon stays pixel-perfect at 16px, 24px, 48px, and any large marketing size.

Design & UX integration

Aesthetic characteristics

Code comes from Ant Design, the enterprise React framework, and follows its three-theme model: Outlined, Filled and TwoTone. TwoTone adds a secondary colour layer, which Ant Design uses to pull the eye toward primary actions in otherwise dense admin screens.

UX best practices

In file explorers, document lists and CMS dashboards, put the Code icon immediately to the left of the filename so the eye scans one straight line. If it triggers a destructive action, keep a confirmation step — a delete or archive glyph is too easy to hit by accident in a dense list.

Use in your project

React / npm — Ant Design Icons

npm install @ant-design/icons

import { CodeOutlined } from '@ant-design/icons';

// JSX usage:
<CodeOutlined style={{ fontSize: '24px' }} />

Copy the SVG markup directly from the IconStash editor to use the Code icon without any npm package — paste it into HTML, JSX, or a design tool.

Inline SVG (copy & paste)

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1024" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" role="img" aria-label="code icon"><path fill="currentColor" d="M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 0 0 308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 0 0-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32m-40 728H184V184h656z"/></svg>

Library & related icons

About Ant Design Icons

Official icon library for Ant Design — China's leading enterprise React UI framework. 1,800+ icons in Outlined, Filled, and TwoTone styles.

  • Total icons: 1,870+
  • Style: multi-style
  • License: MIT
  • npm package: @ant-design/icons
Browse all 1,870 Ant Design Icons icons →

People also search for

Frequently asked questions

What is the Code icon?

The Code icon is a fill-style SVG icon from the Ant Design Icons library, categorized under Files. It is designed for use in document management systems, admin panels, file explorers, CMS dashboards, cloud storage UIs, and PDF viewers. On IconStash you can preview it, customize its color and size, and export it in SVG, PNG, JSX, or CSS formats directly from your browser.

Is the Code icon free to use?

Yes. Ant Design Icons is licensed under MIT, making it free for personal and commercial use. This means you can freely use the Code icon in personal, commercial, and open-source projects. IconStash provides SVG and PNG access at no cost with no login required.

How do I use the Code icon in React?

Install the package with `npm install @ant-design/icons`, then import the component into your React file. IconStash's detail panel shows you the exact npm command, import statement, and JSX usage snippet for every icon — just click the Code tab and copy with one click.

What is the Ant Design Icons icon library?

Official icon library for Ant Design — China's leading enterprise React UI framework. 1,800+ icons in Outlined, Filled, and TwoTone styles. It contains 1,870+ icons. IconStash indexes the complete Ant Design Icons collection alongside 27 other open-source libraries — 134,701 icons total — in a single unified search interface.

Can I download the Code icon as a PNG?

Yes. Open the Code icon in IconStash, set your desired pixel size (16px to 512px) in the detail panel, and click Download PNG. You can also export a multi-resolution ZIP pack containing 16, 24, 32, 48, 64, 128, 256, and 512px PNGs with a single click.

What does the fill icon style mean?

An icon in fill style uses a clean SVG vector format. This style is best suited for interface components. The Ant Design Icons Code icon follows this visual convention throughout the Ant Design Icons design system.

Can I change the Code icon's color and size before downloading?

Yes. In IconStash's editor panel, choose from six color presets (blue, slate, green, purple, red, teal) or enter a custom hex value. Drag the size slider (16–256px) or type an exact pixel value up to 512px. Changes apply instantly to the SVG preview, the PNG output, and the copied code.