# Patch Embedding

- **Canonical URL:** https://getaimath.com/dictionary/patch-embedding/
- **Topics:** [Multimodal AI](https://getaimath.com/dictionary/category/multimodal-ai/)
- **Last updated:** 2026-11-25

## What is Patch Embedding?

**In one sentence:** Patch embedding is the step that cuts an image into small squares and turns each square into an embedding.

A Vision Transformer cannot read pixels one by one, so it slices the image into patches, like 16 by 16 pixels each. Each patch is flattened and converted into a vector, forming a sequence of tokens.

![Multimodal AI: One Brain That Can See, Hear, and Read — Simple cartoon showing a Photo (chopped into puzzle tiles), a Voice recording, and a Text note all translated into the same Lego blocks so one AI brain can understand all three together.](https://getaimath.com/diagrams/multimodal-ai.png)
*Napkin Diagram (Multimodal AI): By turning photo tiles and sound waves into the same kind of blocks as words, one AI can look, listen, and talk.*

## What is an example of Patch Embedding?

A 224×224 image cut into 16×16 patches gives 196 patch embeddings.

## Why does Patch Embedding matter?

It is how Transformers turn pictures into something they can read.

## Related Concepts

- [Image Tokens](https://getaimath.com/dictionary/image-tokens/): Image tokens are the pieces an image is turned into so a language model can process it like text.
- [Vision Transformer (ViT)](https://getaimath.com/dictionary/vision-transformer-vit/): A Vision Transformer is a Transformer model designed for images, treating image patches like words in a sentence.
- [Image Embedding](https://getaimath.com/dictionary/image-embedding/): An image embedding is a list of numbers that represents what an image is about.
- [OCR](https://getaimath.com/dictionary/ocr/): OCR, or Optical Character Recognition, is technology that reads text from images, like photos of documents or signs.
- [Vision Encoder](https://getaimath.com/dictionary/vision-encoder/): A vision encoder turns an image into a set of numbers or tokens that a model can understand.
- [Object Detection](https://getaimath.com/dictionary/object-detection/): Object detection is an AI task that finds objects in an image and draws boxes around them with labels.

---
Source: The AI Math Dictionary (https://getaimath.com/dictionary/patch-embedding/)
