Code icon
fa:code
The Code icon (fa:code) is a free SVG icon from the Font Awesome 4 set by Dave Gandy. It is drawn on a 1856 × 1408 grid. Font Awesome 4 icons are released under the Open Font License, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Font Awesome 4
- Author
- Dave Gandy
- License
- OFL-1.1
- Size
- 1856 × 1408
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="1856" height="1408" viewBox="0 0 1856 1408"><path fill="currentColor" d="m585 1143l-50 50q-10 10-23 10t-23-10L23 727q-10-10-10-23t10-23l466-466q10-10 23-10t23 10l50 50q10 10 10 23t-10 23L192 704l393 393q10 10 10 23t-10 23M1176 76L803 1367q-4 13-15.5 19.5T764 1389l-62-17q-13-4-19.5-15.5T680 1332L1053 41q4-13 15.5-19.5T1092 19l62 17q13 4 19.5 15.5T1176 76m657 651l-466 466q-10 10-23 10t-23-10l-50-50q-10-10-10-23t10-23l393-393l-393-393q-10-10-10-23t10-23l50-50q10-10 23-10t23 10l466 466q10 10 10 23t-10 23"/></svg>How to use the Code icon
React
import { Icon } from "@iconify/react";
<Icon icon="fa:code" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="fa:code" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="fa:code" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[fa--code]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/fa -->
<div class="i-fa:code"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="fa:code"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/fa/code.svg" alt="Code icon" width="24" height="24">Related icons in Font Awesome 4
Code icon in other icon sets
Code icon FAQ
Is the Code icon free for commercial use?
Yes. Font Awesome 4 icons are released under the Open Font License, which allows use in personal and commercial projects.
How do I use the Code icon in React?
Install @iconify/react and render <Icon icon="fa:code" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Code icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/fa/code.svg" alt="Code icon">, or paste the SVG code inline to style it with CSS.