BrowserTricks Logo

    The `copy()` Console Utility

    Move large objects or JSON from the console to your system clipboard instantly.

    Power-User Tips

    Curated tricks for Chrome, Edge, Brave, Vivaldi & Opera GX.

    Hidden Features

    Discover experimental flags, DevTools hacks, and productivity boosters.

    Back to Developer Tools

    The `copy()` Console Utility

    All Chromium

    Console Masteryshortcut

    What It Does

    Move large objects or JSON from the console to your system clipboard instantly.

    Quick Summary

    Use `copy(variable)` in the console.

    Step-by-Step Instructions

    1. 1

      Open DevTools Console (`F12`).

    2. 2

      Type `copy(myArray)` where myArray is any data you've fetched or processed.

    3. 3

      The content is now ready to be pasted into your code editor.

    4. 4

      Use `copy($_)` to copy the very last result evaluated in the console.

    More in Console Mastery