For the reverse (computer -> phone) I use a browser extension called "The QR Code Extension." Click it and it displays a QR code to the current URL you just point your phone's camera at.
https://chrome.google.com/webstore/detail/the-qr-code-extens...