Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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)

share|improve this question
My Safari has Download Linked File as an option on the right click menu for that example – Mark Feb 18 '14 at 12:27
up vote 8 down vote accepted


  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.
share|improve this answer
Chrome: Alt+Click on Link – Max Ried Mar 1 '12 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 '12 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. – Max Ried Mar 1 '12 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).

share|improve this answer

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.

share|improve this answer
  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!
share|improve this answer
Are you sure you read the question? – Max Ried Dec 18 '12 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 '12 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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.