Short answer: to copy and paste without losing formatting, match the method to the content. Paste links and code as plain text through a plain-text clipboard so nothing gets auto-formatted. Paste tables from a spreadsheet directly into another spreadsheet or document. Use "paste without formatting" (Ctrl+Shift+V / ⌘⇧V) when you want only the text.

Links

  • Copy the full URL from the address bar, not the visible link text.
  • Decode long URLs with the URL decoder before sharing.

Code

  • Avoid chat apps and word processors, which turn quotes into “smart quotes” and break indentation.
  • Use a plain-text clipboard such as copy-paste.online. It keeps tabs, spaces and symbols exactly as they are.
  • To shrink code before sharing, use the JS, CSS, HTML or PHP minifiers.

Tables

  • Spreadsheet → spreadsheet keeps columns, because cells are copied as tab-separated text.
  • Through a plain-text clipboard, columns arrive tab-separated, and pasting into Excel or Sheets rebuilds the table.

Shortcuts

Paste without formatting: Ctrl+Shift+V (Windows/Chrome), ⌘⌥⇧V (Mac). See keyboard shortcuts.

Related: common mistakes, what is a clipboard.