Code Blocks icon

Code Blocks is a Google Material Symbol from the Actions category. It comes in outlined, rounded and sharp styles, filled or unfilled, at seven weights from 100 to 700. Download it as SVG or PNG, or copy code for HTML, React, Vue, Angular, Flutter and Android — it's free to use under the Apache License 2.0.

Outlined

SVG

Outlined, filled

SVG

Every style, fill and weight

Material Symbols are variable: each icon comes in three styles, with or without fill, at seven weights. Pick a combination to preview it, download it, or copy the code for your platform.

Outlined, unfilled, weight 400

code_blocks_outlined_fill0_wght400.svg

Code Blocks icon in HTML

Load the Material Symbols font from Google Fonts (this link loads just this icon), then use the icon's name as text.

<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200&icon_names=code_blocks" />

<span class="material-symbols-outlined">code_blocks</span>

Code Blocks icon in React

// With the font from the HTML tab:
export function CodeBlocksIcon() {
  return (
    <span className="material-symbols-outlined">
      code_blocks
    </span>
  );
}

// Or as an SVG component (Vite + vite-plugin-svgr) instead:
//   npm install @material-symbols/svg-400
//   import CodeBlocksIcon from "@material-symbols/svg-400/outlined/code_blocks.svg?react";

Code Blocks icon in Vue

<!-- With the font from the HTML tab -->
<template>
  <span class="material-symbols-outlined">code_blocks</span>
</template>

<!-- Or as an SVG component (Vite + vite-svg-loader):
     npm install @material-symbols/svg-400
     import CodeBlocksIcon from "@material-symbols/svg-400/outlined/code_blocks.svg?component"; -->

Code Blocks icon in Angular

With Angular Material and the font from the HTML tab:

<mat-icon fontSet="material-symbols-outlined">code_blocks</mat-icon>

Code Blocks icon in Flutter

Uses the community material_symbols_icons package.

flutter pub add material_symbols_icons

import 'package:material_symbols_icons/symbols.dart';

Icon(Symbols.code_blocks, fill: 0, weight: 400)

Code Blocks icon in Android

A vector drawable of the selected style, fill and weight:

<!-- res/drawable/code_blocks.xml -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24"
    android:tint="?attr/colorControlNormal">
        <path android:fillColor="@android:color/white" android:pathData="m9.475 15.425 1.1-1.1-2.325-2.325 2.3-2.3-1.1-1.1-3.4 3.4 3.425 3.425Zm5.05 0 3.425-3.425-3.425-3.425-1.1 1.1 2.325 2.325-2.325 2.325 1.1 1.1ZM4.5 21q-.6 0-1.05-.45t-.45-1.05v-15q0-.6 .45-1.05t1.05-.45h15q.6 0 1.05 .45t.45 1.05v15q0 .6-.45 1.05t-1.05 .45H4.5Zm0-1.5h15v-15H4.5v15Zm0-15v15-15Z" />
</vector>

Code Blocks icon in SVG

npm install @material-symbols/svg-400

import icon from "@material-symbols/svg-400/outlined/code_blocks.svg";

<!-- or load it from a CDN -->
<img src="https://cdn.jsdelivr.net/npm/@material-symbols/[email protected]/outlined/code_blocks.svg" width="24" height="24" alt="Code Blocks">

Code Blocks icon in Power Apps

Paste into an Image control's Image property. The Copy button copies the full formula with this icon's SVG.

"data:image/svg+xml;utf8, " & EncodeUrl("<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'>…</svg>")

Details

NameCode Blocks
Ligaturecode_blocks
Code pointU+F84D
CategoryActions
StylesOutlined, Rounded, Sharp — each unfilled or filled
Weights100, 200, 300, 400, 500, 600, 700
Files@material-symbols/svg-400/outlined/code_blocks.svg, code_blocks-fill.svg
FlutterSymbols.code_blocks
LicenseApache License 2.0 (© Google LLC)

Keywords

actionsstructureeditorconnectblockflowdevelopmentsequenceprogrammingfunctioncomponentengineeringcoding

Related icons