Create logo as <svg> image

I have seen that some images are encoded in text like in .yalm files
How could I convert the image of my logo to that format?

I use Affinity Designer which is a great tool at a very reasonable price.

It supports many file formats and as long your image is vector (EPS, AI, etc) it can export to SVG.