Published Feb 13, 2026 · 4 Min Read

  1. How Ctrl+Z works across Windows applications
  2. Where does Ctrl+Z work
  3. Ctrl+Z in Microsoft Office applications
  4. Ctrl+Z in File Explorer and Desktop
  5. Frequently asked questions

How Ctrl+Z works across Windows applications

On most Windows systems, Ctrl+Z triggers the “Undo” command built into an application. When you perform an action—like typing text, deleting a file, or moving an object—the software records that action in a temporary memory structure often called an “undo stack.”

Each time you press Ctrl+Z, the application reverses the most recent action stored in that stack. If you press it repeatedly, it continues stepping backward through previous actions in reverse order. This works because many modern programs are designed with state tracking systems that monitor user actions in sequence.

For example, if you type a sentence, delete a word, and then bold a heading, pressing Ctrl+Z once will remove the bold formatting. Press it again, and the deleted word may reappear. Press it a third time, and the typed sentence may begin disappearing.

However, Ctrl+Z only works within the context of the active application. It cannot undo system-level changes outside that program. Also, once you close an application, the undo history is typically cleared.

In short, Ctrl+Z works by storing recent changes in memory and reversing them step by step—making it one of the most essential productivity shortcuts in Windows.

Where does Ctrl+Z work

Ctrl+Z works in most modern applications that allow editing or manipulation of content. This includes word processors, spreadsheets, presentation software, image editors, file managers, web browsers, and even development environments.

In Windows, nearly all native and third-party applications support Ctrl+Z as part of standard user interface guidelines. Programs built using common development frameworks often include built-in undo functionality by default.

You will commonly find Ctrl+Z working in:

  • Document editing software
  • File Explorer and desktop file operations
  • Web forms and text input fields
  • Design and creative tools
  • Programming and code editors

However, not all actions are reversible. Some system-level changes, permanent deletions (like files removed using Shift+Delete), or certain administrative tasks cannot be undone with Ctrl+Z.

It is also important to note that Mac users use Command (⌘) + Z instead of Ctrl+Z, although the function remains the same.

Overall, Ctrl+Z works in most places where user input modifies content—but its effectiveness depends on how the specific application manages its undo history.

Ctrl+Z in Microsoft Office applications

Here are some of the Microsoft Office applications where Ctrl+Z works:


Ctrl+Z in Microsoft Word (Text Editing)

 

In Microsoft Word, Ctrl+Z undoes typing, formatting changes, deletions, and even certain layout adjustments. If you accidentally delete a paragraph or apply incorrect formatting, pressing Ctrl+Z restores the previous state instantly. Word also supports multiple undo levels, allowing you to reverse several actions in sequence.


Ctrl+Z in Excel (Cell Changes, Formulas)

 

In Microsoft Excel, Ctrl+Z reverses cell edits, formatting changes, formula updates, and row or column insertions. However, some actions—like running certain macros—cannot be undone. Excel maintains a limited undo stack, which resets after saving or performing specific commands.


Ctrl+Z in PowerPoint (Slide Edits)

 

In Microsoft PowerPoint, Ctrl+Z can undo slide edits, object movements, text changes, and animation modifications. If you accidentally delete an image or text box, the shortcut restores it immediately. Across Microsoft Office apps, Ctrl+Z remains one of the most frequently used productivity tools.

Ctrl+Z in File Explorer and Desktop

Here is how you can use the Ctrl+Z shortcut on the Desktop and in the File Explorer:

  • Undo File Deletion with Ctrl+Z - In File Explorer, pressing Ctrl+Z immediately after deleting a file restores it to its original location—provided it was not permanently deleted using Shift+Delete.
  • Undo File Moves and Renames - If you rename a file or move it to a different folder, pressing Ctrl+Z reverses the action. The file returns to its previous name or location.
  • Undo Cut/Copy/Paste operations - After cutting and pasting a file into another folder, Ctrl+Z moves it back to its original folder. This can be especially helpful when reorganizing files and accidentally placing them in the wrong directory. Note that undo history in File Explorer is limited and may reset after certain operations.

Ctrl+Z in Web Browsers and Email

Learn the ways of using the Ctrl+Z keyboard shortcuts for web browsers and emails:

  • Ctrl+Z in Chrome, Firefox, Edge - In browsers like Google Chrome, Mozilla Firefox, and Microsoft Edge, Ctrl+Z works inside text fields. It undoes typing in search bars, forms, and online editors.
  • Ctrl+Z in Gmail and Web Forms - In Gmail, Ctrl+Z can undo recently typed text. Gmail also provides a separate “Undo Send” feature (time-limited), which is different from the keyboard shortcut.
  • Ctrl+Z limitations in Web Apps - Undo behaviour depends on the web app. Some online platforms limit undo history, especially if the page refreshes or autosaves. Once a form is submitted, Ctrl+Z typically cannot reverse the action.

Ctrl+Z in Design and Creative Software

Ways to use the Ctrl+Z shortcut for in Design and Creative Softwares:

  • Ctrl+Z in Photoshop and Image Editors - In Adobe Photoshop, Ctrl+Z undoes recent edits like brush strokes, filters, and adjustments. Photoshop also provides a History panel for more advanced undo control.
  • Ctrl+Z in Illustrator and Vector apps - In Adobe Illustrator, Ctrl+Z reverses object transformations, colour changes, and path edits. 
  • Multiple Undo levels (History Panel) - Creative tools often allow dozens—or even hundreds—of undo levels. Users can configure history states to balance memory usage and flexibility.

Programming and Code Editors

Here is how you can use the keyboard shortcut for the following: 

  • Ctrl+Z in VS Code and Notepad++ - In Visual Studio Code and Notepad++, Ctrl+Z undoes typed code, formatting changes, and refactoring edits.
  • Ctrl+Z in Terminal/Command prompt - In Command Prompt, Ctrl+Z behaves differently. It can signal the end of input rather than undo a command.
  • Git Undo vs Ctrl+Z (Version control) - In Git, undoing changes involves commands like git restore or git reset. Ctrl+Z only affects text edits in your editor—not committed changes in version control.

How many times can you press Ctrl+Z

Ever wondered how many times you can use the keyboard shortcut?

  • Undo Stack/History limits by app - The number of times you can press Ctrl+Z depends on the application. Some programs allow unlimited undo until memory runs out, while others cap the undo stack at a set number (e.g., 20–100 actions).
  • What resets the Ctrl+Z history - Closing an app, performing certain commands, running macros, or saving in specific programs may reset the undo history.
  • Save vs Undo (Point of no return) - Undo reverses actions in memory, but once a document is closed, that history is gone. Saving preserves content—not undo history. Always double-check major changes before closing your file.

Common Ctrl+Z problems and fixes

Here are some of the common problems and fixes for the Ctrl+Z keyboard shortcut:


Ctrl+Z not working (Solutions)

 

If Ctrl+Z stops working:

  • Ensure the correct window is active
  • Restart the application
  • Check keyboard functionality

Ctrl+Z greyed out or disabled

 

If the Undo option is greyed out, there may be no actions available to reverse.


Keyboard shortcut conflicts

 

Some software remaps shortcuts. Check application settings if Ctrl+Z behaves unexpectedly.

Shop smart with Easy EMIs

Bajaj Finserv puts you in control of your shopping. See if you are eligible for a loan and get instant approval in just a few steps. Once approved, go to any of 1.5 lakh+ partner stores across India. Pick from over 1 million products from 550+ leading brands. Pay in Easy EMIs with 50+ flexible options that fit your budget. Enjoy a fast, seamless, and stress-free shopping experience—with more freedom and more savings.

Why use the Maha Bachat Savings Calculator

Bajaj Finserv’s Maha Bachat Savings Calculator helps you unlock maximum savings every time you shop at partner stores. It brings together all available brand, dealer, and scheme offers—so you can see your total savings instantly and shop smarter with Easy EMIs.


  1. Dealer offers - Grab exclusive in-store deals at over 1.5 lakh partner stores across India. Enjoy local discounts and special prices you will not find online.
  2. Brand offers - Access limited-time discounts from top brands across electronics, appliances, and more. Discover brand-specific savings selected just for you.
  3. Bajaj offers - Unlock exclusive Bajaj Finserv deals on popular products—available only to our customers. More rewards, more value.
  4. Scheme offers - Take advantage of time-sensitive offers on select EMI schemes. Get extra benefits after paying just 3 EMIs—visible during EMI selection at checkout.


Calculate your extra savings now!


 

Frequently asked questions

What is the use of Ctrl+Z?

Ctrl+Z is the Undo shortcut. It reverses your most recent action in most applications, such as deleting text, moving files, or changing formatting. Pressing it repeatedly steps backward through previous actions, helping you quickly correct mistakes without manually redoing your work.

What is the use of Ctrl+D?

Ctrl+D performs different actions depending on the application. In many web browsers, it bookmarks the current page. In Microsoft Word, it opens the Font dialog box. In File Explorer, it may delete selected files by moving them to the Recycle Bin.

What do Ctrl+Z and Ctrl+V do?

Ctrl+Z undoes your last action, while Ctrl+V pastes copied or cut content. Together, they help manage edits efficiently—allowing you to reverse mistakes and quickly insert text, images, or files into documents, folders, or applications.

What is Ctrl+F?

Ctrl+F opens the Find tool in most applications. It allows you to search for specific words, phrases, or data within a document, webpage, spreadsheet, or folder, saving time when locating information in large amounts of content.

What does Ctrl+Z do in File Explorer?

In File Explorer, Ctrl+Z undoes recent file actions such as deleting, renaming, moving, or pasting files. If used immediately after the action, it restores files to their previous location or name, unless they were permanently deleted.

How many times can I press Ctrl+Z?

You can press Ctrl+Z multiple times to undo several recent actions, depending on the application’s undo limit. Some programs allow dozens or hundreds of undo steps, while others restrict the number based on memory or internal settings.

Show More Show Less

Bajaj Finserv app for all your financial needs and goals

Trusted by 50 million+ customers in India, Bajaj Finserv App is a one-stop solution for all your financial needs and goals.

You can use the Bajaj Finserv App to:

  • Apply for loans online, such as Instant Personal Loan, Home Loan, Business Loan, Gold Loan, and more.
  • Invest in fixed deposits and mutual funds on the app.
  • Choose from multiple insurance for your health, motor and even pocket insurance, from various insurance providers.
  • Pay and manage your bills and recharges using the BBPS platform. Use Bajaj Pay and Bajaj Wallet for quick and simple money transfers and transactions.
  • Apply for Insta EMI Card and get a pre-qualified limit on the app. Explore over 1 million products on the app that can be purchased from a partner store on Easy EMIs.
  • Shop from over 100+ brand partners that offer a diverse range of products and services.
  • Use specialised tools like EMI calculators, SIP Calculators
  • Check your credit score, download loan statements and even get quick customer support—all on the app.

Download the Bajaj Finserv App today and experience the convenience of managing your finances on one app.

Disclaimer

1. Bajaj Finance Limited (“BFL”) is a Non-Banking Finance Company (NBFC) and Prepaid Payment Instrument Issuer offering financial services viz., loans, deposits, Bajaj Pay Wallet, Bajaj Pay UPI, bill payments and third-party wealth management products. The details mentioned in the respective product/ service document shall prevail in case of any inconsistency with respect to the information referring to BFL products and services on this page. 

2. All other information, such as, the images, facts, statistics etc. (“information”) that are in addition to the details mentioned in the BFL’s product/ service document and which are being displayed on this page only depicts the summary of the information sourced from the public domain. The said information is neither owned by BFL nor it is to the exclusive knowledge of BFL. There may be inadvertent inaccuracies or typographical errors or delays in updating the said information. Hence, users are advised to independently exercise diligence by verifying complete information, including by consulting experts, if any. Users shall be the sole owner of the decision taken, if any, about suitability of the same.

Do more with the Bajaj Finserv App!

UPI, Wallet, Loans, Investments, Cards, Shopping and more