Paste data from Excel or Google Sheets into Mammoth
Paste from Clipboard turns cells you copied into a new dataset. In the Data Library, click New dataset, choose Paste from Clipboard, paste, and click Create new dataset. Use it for small tables and quick questions that don't need a file upload.
When to paste data
| Situation | Example |
|---|---|
| A question in a meeting | Asked for the average deal size by region, copy the CRM report, paste it, and break it down with Explore Cards without leaving the meeting |
| Testing logic or training | Paste a 50-row sample of production data and build a pipeline on it to show before-and-after results, without touching production |
| A small reference table | Paste a 30-row table of Department Name and Department Code (or product categories) and use it in lookups and joins across several Views; paste a new version when the codes change |
| A quick check | A data quality check before a formal upload |
Use Upload files instead when the dataset is large, you need batch history (Combine or Replace), the data updates regularly, or you have several related files. Use Connect a database or app when data changes daily or hourly, lives in a database or business application, or should refresh on a schedule. Use Generate with AI for sample data for tests, proofs of concept, learning or training.
Paste cells to create a dataset
- Select cells in Excel or Google Sheets, including the header row, and copy them (Ctrl+C on Windows, Cmd+C on Mac).
- In Mammoth, click New dataset and select Paste from Clipboard.
- Select Click to paste data, or press Ctrl+V (Cmd+V on Mac). Mammoth shows an editable preview of the pasted table.
- Check the columns and header row Mammoth detected.
- Give the dataset a name and click Create new dataset. Nothing is saved until you do.
To discard the preview, select the X button in the preview bar. If you paste again while a preview exists, Mammoth asks "Are you sure you want to replace this preview?". If the browser blocks clipboard access, Mammoth shows "Clipboard access was blocked. Allow access or press Ctrl+V." (Cmd+V on Mac).
What you can paste
- Spreadsheets: Excel ranges (with or without headers), Google Sheets selections, and any spreadsheet that copies cells as tab-separated text.
- Web and tools: HTML tables from websites, database query results copied as text (for example from pgAdmin), and CSV text from text editors or command-line tools.
Mammoth splits the pasted text on tabs if it contains any tab (the most common, from Excel), and on commas otherwise. Other delimiters, such as pipes (|) and semicolons, are not detected.
Content that isn't rows and columns goes in a single column as text, one line per row: plain sentences (hello this is not a table), JSON ({"key": "value"}), HTML (<div>test</div>) and special characters (@#$%^&*()_+=~). If the preview isn't what you expected, restructure the data into rows and columns, or use another method.
Mammoth rejects pasted file paths, file names (for example report.xlsx) and images (see Troubleshooting paste).
How Mammoth detects headers and types
- Header row: the first line becomes headers when it has a non-numeric label in every column and at least one more line follows. Otherwise it stays as data.
- Column types: detected when the dataset is created, as for a file upload. Review them afterwards and use Convert Column Type where needed.
To paste reliably, fix typos and keep one date and number format per column before you copy. Paste a few rows first to check detection, then the full table. In the preview, check numeric codes (product IDs may be detected as numbers when you want text), dates and long text values.
Limits of paste
| Area | Limit |
|---|---|
| Browser memory | The pasted table is held in your browser until you create the dataset, so very large tables can be slow. Close other browser tabs to avoid slowdowns. |
| Clipboard size | Content too large for the browser to read shows "Content too large to paste. Use the file upload option instead." |
| Upload size | Mammoth sends the pasted table as a file when you create the dataset, so the 50 MB upload limit applies (see Limits and quotas) |
| Versions | Each paste creates a new dataset. To add to it later, use a file with Add data |
| Refresh | No schedule or automatic refresh. Copy and paste again for new data |
Troubleshooting paste
| Symptom | Cause | Fix |
|---|---|---|
| Nothing appears after pasting | The text is a paragraph, not rows and columns; the clipboard holds an image, a file path or a file name; or the browser blocked clipboard access | Copy cells with a clear row and column structure. Paste into a text editor first to see the raw format. Allow clipboard access in your browser settings. |
| "Invalid pasted data. Please copy cells from Excel, Google Sheets, or a CSV file." | You pasted a file path, file name or image | Copy the cells themselves |
| Numbers detected as text, or dates as text | Mixed formatting in a column, no header row, or special characters in numbers | Include the header row, clean the formatting, then use Convert Column Type |
| The browser freezes or stops responding | The table is too big for browser memory, other tabs use memory, or there are many columns | Close other tabs, paste a smaller part first, or upload a file |
| Pasted data disappeared | Nothing is saved until you click Create new dataset; a browser refresh, crash or closed tab before then loses the data | Click Create new dataset straight after pasting, and keep the source data to paste again |
Related
- Get data into Mammoth: compare every way to create a dataset.
- Add or replace data in a dataset: add more rows to a pasted dataset later.
- Explore cards: look at the pasted data straight away.
- Look up a value from another dataset: use a pasted reference table as a lookup.
Something wrong? support@mammoth.io