Code Text icon
Used in code type scenarios. The Code Text icon is part of Microsoft's Fluent UI System Icons, available here in regular and filled styles in 2 sizes from 16 to 20 px. Download it as SVG or PNG, or copy it as code — it's free to use under the MIT License.
Every size and style
Microsoft draws each size separately so icons stay crisp, rather than scaling one drawing. Pick a style and size to preview it, download it, or copy the code for your platform.
Regular, 16 px
ic_fluent_code_text_16_regular.svg
Code Text icon in React
npm install @fluentui/react-icons
import { CodeText16Regular } from "@fluentui/react-icons";
export function Example() {
return <CodeText16Regular aria-label="Code Text" />;
}Use the Code Text icon in React
Install Microsoft's @fluentui/react-icons package, then import the component. Icons inherit the current text color, and you can size them with CSS.
npm install @fluentui/react-icons
import { CodeText16Regular, CodeText16Filled } from "@fluentui/react-icons";
export function Example() {
return <CodeText16Regular aria-label="Code Text" />;
}Use it in HTML
Reference the SVG file directly:
<img src="https://fluenticons.co/icons/ic_fluent_code_text_20_regular.svg" width="20" height="20" alt="Code Text"> Or paste the SVG markup inline. Setting fill="currentColor" makes the icon follow the text color of its parent:
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M2.5 5a.5.5 0 0 0 0 1H8a.5.5 0 0 0 0-1zm3 3a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1zM4 11.5c0-.28.22-.5.5-.5h10a.5.5 0 0 1 0 1h-10a.5.5 0 0 1-.5-.5M2.5 14a.5.5 0 0 0 0 1H11a.5.5 0 0 0 0-1zm10-5.5c0-.28.22-.5.5-.5h3.5a.5.5 0 0 1 0 1H13a.5.5 0 0 1-.5-.5m-2-3.5a.5.5 0 0 0 0 1h7a.5.5 0 0 0 0-1z"/></svg>Details
| Name | Code Text |
|---|---|
| Styles | Regular (outlined), Filled |
| Sizes | 16 px, 20 px |
| Regular (outlined) file | ic_fluent_code_text_20_regular.svg |
| Filled file | ic_fluent_code_text_20_filled.svg |
| React (Regular) | CodeText16Regular, CodeText20Regular |
| React (Filled) | CodeText16Filled, CodeText20Filled |
| License | MIT (© Microsoft Corporation) |