---
title: "How to search PubChem by name or CAS number | Learn MolDraw"
url: https://www.moldraw.com/learn/how-to-search-pubchem-by-name-or-cas-number/
description: "Type a name or a CAS number in the PubChem box. MolDraw draws the structure for you. Free hands-on lesson in the real MolDraw editor, about 3 minutes."
lang: en
publisher: Scidart Academy
generated: 2026-11-25
---
# How to search PubChem by name or CAS number

Beginner 3 min 2 steps

**Short answer:** Type a name or a CAS number in the PubChem box. MolDraw draws the structure for you.

**You will learn to:** Search by name; Search by CAS number.

1 Watch demo2 Try in editor

## Watch the demo

Press **Play**, or use the arrows to go one step at a time. **Try it yourself** opens the exercise.

### The steps in text

### Step 1: Search by name

1. Click the **PubChem** search box at the top.
2. Type **caffeine**. Press `Enter`.

### Step 2: Search by CAS number

1. Click **Clear canvas** (the red bin).
2. Type **50-78-2** in the PubChem box. Press `Enter`.

## Try it in the editor

Steps

1. 1Search by name
2. 2Search by CAS number

The full MolDraw editor opens here. It loads when you open this tab.

## Questions and answers

### What is a CAS number?

A unique ID for a chemical, such as 50-78-2 for aspirin.

### Does search work offline?

No. PubChem search needs the internet.

For more detail, read [the guide in the docs](https://www.moldraw.com/docs/import-export/how-to-search-pubchem-by-name-or-cas-number/).
