IconsLibrary

Code Block Icon

Animation

Speed
Playback

Appearance

Colour
Original
Absolute stroke width
56px

More from this family

About the Code Block Icon

In interfaces, Code Block points to text that should be read or edited as code, not rendered as normal content. It usually signals fenced snippets, preformatted formatting, or a control for inserting a block of code into an editor.

Good for
chat composerdocument editorfeature listempty state
Tags
code blockdeveloper toolsformattingcode block symbolblock codedevelopmenteditormarkdownproductivity

Frequently Asked Questions

What does the Code Block Icon mean?

The Code Block Icon signals a multiline region for preformatted code, not normal paragraph text. The convention exists because code needs spacing, line breaks, and monospaced treatment that standard rich text will otherwise change. A chat app, for example, can use it to wrap pasted JavaScript so the spacing stays intact. Avoid using it for a single token in a sentence; use code text for inline snippets.

Where should I use the Code Block Icon?

It belongs with text-formatting actions such as bold, italic, quote, and code, usually near the other content-format controls. That placement helps users understand it changes the text style or structure, not the file or app settings. A document editor can keep it in a compact formatting row above the content area. Avoid hiding it with file actions or navigation controls, because that breaks the mental model.

What is the difference between the Code Block Icon and the Code Text Icon?

Use Code Block when the content spans multiple lines or when the user is explicitly inserting a fenced snippet. The difference matters because inline code is read as part of a sentence, while a block is read as a separate region. In a markdown editor, a three-line example should use Code Block, while a variable name in body copy should use code text. Do not swap them, or users will misread the formatting scope.

Is there an animated Code Block Icon?

Yes. Press play above to see the Code Block Icon move, set its speed and playback, then download it as GIF, Lottie or MP4.

Can I download the Code Block Icon as PNG or SVG?

Yes. Download the Code Block Icon as PNG, SVG, WebP, AVIF and JPEG, or copy it as React, Vue or Svelte code.