How can I generate PDF from text online instantly?

I need to turn a few pages of plain text into a PDF quickly, and I’m away from my computer. Is there a way to generate one online instantly?

had the same thing last month when i was out. i just pasted the text into google docs on my phone and downloaded it as a pdf, worked fine tbh. the google docs app does it pretty instantly. notes can print to pdf too if you just need something quick.