Some data formats will not be automatically downloaded by Safari/Chrome. Usually there are other options:

  • .jpg → right-click will show a dialog with an option download
  • .pdf → when you hover over the PDF an option to download appears

How can I download a plain .txt file? (example URL)

  • My Safari has Download Linked File as an option on the right click menu for that example
    – mmmmmm
    Feb 18, 2014 at 12:27

5 Answers 5



  1. Highlight URL in the address bar
  2. Press and then to download.


  1. File -> Save As

    • No options appear as to what the downloaded format is. For a plain .txt file it will be a simple text file.
  • 3
    Chrome: Alt+Click on Link
    – bot47
    Mar 1, 2012 at 9:46
  • @MaxRied Oh yeah! Thanks. However, this does not work with the URL in the address bar. That's why I've never tried it.
    – gentmatt
    Mar 1, 2012 at 9:54
  • Yeah, that's why I didn't post it as an answer, but I think it's also interesting for your question.
    – bot47
    Mar 1, 2012 at 10:36

If you're on a page with a link to a txt/plain text, do a right-click on the link and choose "Download Linked File" or "Download Linked File As ...". Per default the file will go in your Downloads folder.

If you're already on the txt page/plain texte page, do a cmd ⌘ + A .(to select all the text) then a cmd ⌘ + C (to copy) the text, then you can paste it where you want (cmd ⌘ + V).


If you already with the URL in the address bar, just open it, and right click on the page and an option save as... should appear.

  1. Find the text to copy (or in this case, use ctrl+A).
  2. Copy the whole text (= ctrl+C).
  3. Open TextEdit and press ctrl+V to paste the text.
  4. Vwoila!
  • Are you sure you read the question?
    – bot47
    Dec 18, 2012 at 6:24
  • I think an experienced Mac user like gentmatt would have thought on this... I think he's looking for something more profound and performant!
    – Michiel
    Dec 18, 2012 at 7:23

If you use PHP then it might be easy one for you using "Content-disposition:" tag. It forces the browser to download the given file, without displaying or playing it.

Make a small php script and upload your file in the same folder. The sample script is

header('Content-disposition: attachment; filename=movie.mpg');
header('Content-type: video/mpeg');

Found this solution at http://www.boutell.com/newfaq/creating/forcedownload.html

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .