Pastemagic’s creator was putting together a research paper, assembling content from various sources (web pages, PDF's, book scans online) and constantly getting super-frustrated with having to manually change formatting, delete linebreaks, and re-type paragraphs. Ugh!
But then he realized you could build a webpage to automate all of it, and voilà — Pastemagic was born.
- Word processor support
- Browser support
- Remove text formatting
- Image to text (OCR)
- Privacy / legal
- Future directions
- Contact (bugs, suggestions)
Why does Word need a special Paste shortcut?
Because Word is annoying, that’s why! 😜
But seriously, Pastemagic copies its output onto the clipboard in HTML format, which includes desired styles like bold, italics, etc. but intentionally does not include a font or font size (that's the original “magic”). Then when a word processor pastes it in, because there's no font or font size, it should follow the document's existing font and font size — which is exactly what Google Docs, Word online, and Apple Pages all do.
Unfortunately, when Word pastes paragraphs of HTML which doesn't include a font or font size, it assumes it must be Times New Roman 12 pt, even if that has nothing to do with your document. Dumb! (Microsoft, if you’re listening, stop it will ya?) So you have to use Word's special “Merge Formatting” (Windows) or “Paste and Match Formatting” (Mac) command — which maintain the current font and font size, but still obey formatting like bold and italics.
On Windows, the good news is you can make “Merge Formatting” the default, which we highly recommend for everyone — go to File > Options > Advanced > Cut, copy and paste (the second section), and set Pasting from other programs (the fourth line) to Merge formatting (the second option).
Does Pastemagic support all word processors?
We've tested and confirmed that Pastemagic works fully with Word (desktop), Word (online), Google Docs, and Apple Pages.
When stripping formatting and pasting into LibreOffice, OpenOffice, or Apple TextEdit, they unfortunately always convert text to Times New Roman 12 pt (or equivalent), and don't have any version of Word's "Merge Formatting" — so you can still paste, but you may still have to manually fix things like font, size and spacing.
Which browsers and devices does Pastemagic support?
Pastemagic supports all browsers with modern clipboard support, such as Chrome, Firefox and Safari.
This means that Internet Explorer and the current version of Edge are not supported, but the next version of Edge should be (EdgeHTML 17, due sometime in 2018).
Pastemagic is designed for desktops/laptops with keyboards, but we've ensured it works on iOS (Safari) and Android (Chrome) as well — it just sometimes takes a few taps to trigger the Copy or Paste menu commands.
Does Pastemagic work offline?
Remove text formatting and remove linebreaks work offline, as long as you've already opened Pastemagic as a browser tab.
Image to text requires an Internet connection to work.
Can Pastemagic "sanitize" HTML, e.g. when copying from Word into a CMS (content management system)?
Absolutely — when you use remove text formatting, Pastemagic removes all extraneous tags and all CSS styling, and guarantees output will consist only of text with p (paragraph), a (link), b (bold), i (italics), s (strikethru), sup (superscript), sub (subscript) tags, and the list tags ul (bulleted list), ol (numbered list), and li (list item). Pastemagic also converts all sequences of whitespace characters (including non-breaking spaces and invisible spaces) to a single standard space.
Sanitizing HTML like this can be particularly useful when copying text from a Word document, which is notorious for injecting mountains of potentially problematic HTML into the clipboard.
What does “smart” superscript/subscript do?
It preserves superscripts and subscripts only if we can detect them as part of a basic equation or mathematical expression. Otherwise we discard them (useful for stripping footnotes).
When I paste from a PDF, why don't I get any formatting at all?
Most PDF readers only copy plain text to the clipboard, not formatting like bold or italics. This includes PDF's opened by Chrome, Firefox, Edge, and Adobe Acrobat Reader.
PDF readers which do copy formatting include Preview on macOS, and Adobe Acrobat Professional (in some versions, you'll need to right-click and select "Copy with Formatting").
Is there any shortcut to grabbing text straight from my mobile device's camera?
Yes. On a mobile device with a camera, if you use the "upload" link on the page, it will give you the option of taking a photo directly. You can then copy and paste that into whatever other app you're using, such as Google Docs or your e-mail app.
Also, if you have a Mac and an iPhone (or iPad), then you can take advantage of Apple's Universal Clipboard, which shares a clipboard between the two devices. You can use this to either copy a photo straight from your Camera app and paste it into Pastemagic on your Mac, or take the photo from within Pastemagic on your iPhone or iPad, copy the text, and the paste that text into the desired program on your Mac.
Which image formats does Pastemagic support?
Pastemagic supports clipboard images in JPEG, PNG and GIF format. Pastemagic also supports images wrapped in HTML (e.g. when copying an image from Google Docs) as well as links to images (e.g. when right-clicking on an image and selecting "Copy Image Address" in Chrome).
Why isn't my image-to-text (OCR) working well?
Our OCR engine requires horizontal text on a perfectly even background, with sufficient contrast between characters and background.
Usually, problems happen when a photo is taken of a page where the brightness changes across the page — which is sometimes the case for photos. Therefore, we recommend screenshots/scans, or else to be careful when taking photos that the page is flat and doesn't have any shadows, even gradual ones.
My image-to-text (OCR) is producing complete gibberish!
This is almost always caused by uneven lighting and/or text that is too far away from horizontal. It may also be caused by areas of a photo that are brighter than the page itself.
What powers your OCR?
Why is image-to-text in "beta"?
There are still a number of improvements we're investigating making, related to language selection and image pre-processing.
What if I have a ton of images to OCR?
Then please don’t paste them all into Pastemagic — our web server is a shared resource.
Instead, download Tesseract and do it locally on your computer. It’ll be faster, we guarantee it.
Does Pastemagic read my content?
For remove text formatting and remove linebreaks, your content never leaves your browser.
For image to text, your image gets sent to us, but we delete both the image and its converted text from our servers immediately after sending the text back to you. We're sure your images are fascinating, really — but sorry, we're just not interested.
Do you track me?
We use Google Analytics to measure usage of Pastemagic. It is 100% anonymized — we don't know who you are.
What are your terms of service?
As a condition of using Pastemagic, you will not use Pastemagic for any purpose that is unlawful, or in any manner that could damage, disable, overburder or impair Pastemagic's servers, or interfere with any other party's use and enjoyment of Pastemagic. Pastemagic does not make any assurances with regard to the accuracy of its output, which is delivered on an "as-is" and "as-available" basis. Pastemagic disclaims all warranties, express or implied, including any warranties of accuracy, non-infringement, and fitness for a particular purpose. You assume total responsibility for your use of Pastemagic, and your sole remedy against Pastemagic for dissatisfaction with the site or its output is to stop using Pastemagic.
Are you adding new features or improving Pastemagic?
Absolutely. We soft-launched in April 2018 and are actively looking for ways to improve it. Please e-mail us (below) if there's anything you'd like to see, or anything not working the way you'd like.
How do I know Pastemagic will stick around? Do you make money?
Pastemagic is a hobby project, but we do pay for web hosting. If and when growth warrants it, we'll add a virtual tip jar or an ad unit to cover the cost of things like OCR processing. As long as people keep using it, we intend to keep maintaining it.
How can I contact you?
We'd love to hear from you! Especially if you've found bugs, have ideas for improvement, or a piece of content isn't formatting the way you'd like.