Skip to main content
Known Participant
February 16, 2020
Answered

Pasting SVG Code in Illustrator

  • February 16, 2020
  • 5 replies
  • 53374 views

I need some information.

 

I have an SVG code. Is it possible to paste the SVG code directly in illustrator get the artwork from the code.

SVG code (from other source) > Copy > Open Illustrator Document > Paste the code > Get the artwork.

 

I dont want to save SVG each time and import it in illustrator.

I hope it make sense. 

Correct answer marka61772970

You could use the following tool: https://jakearchibald.github.io/svgomg/ , simply copy/paste the code in then download as a binary file.

5 replies

saranroy
Participant
May 6, 2021

Yes, it's possible. Check this.

Open Adobe Illustrator CC and paste this in an artboard:

 

<svg width="20" height="20" viewBox="0 0 24 24">
<path d="M14 2A8 8 0 0 0 7.4 14.5L2.4 19.4a1.5 1.5 0 0 0 2.1 2.1L9.5 16.6A8 8 0 1 0 14 2Zm0 14.1A6.1 6.1 0 1 1 20.1 10 6.1 6.1 0 0 1 14 16.1Z"></path>
</svg>

 

It's the SVG code of the search icon from this website. Paste get the artwork, as you have wished.

marka61772970Correct answer
Participant
August 10, 2020

You could use the following tool: https://jakearchibald.github.io/svgomg/ , simply copy/paste the code in then download as a binary file.

Participant
August 13, 2024

Exactly what I was looking for, thanks!

CarlosCanto
Community Expert
Community Expert
February 19, 2020

can you share one of the trouble files?

CarlosCanto
Community Expert
Community Expert
February 16, 2020

have your tried copying/pasting? I just did and it worked fine here Win 10, CC2020.

 

the svg code I copied was a file I exported from Illustrator, I'm not sure if svg from other sources will work as well.

StarAG​Author
Known Participant
February 17, 2020

Wow, that actually worked. It was pretty easy 🙂

Thanks a lot and my bad for never trying the same. 😄

 

However, for some (or many) files it says 

"cannot paste the objects. the requested transformation would make some objects fall"

Any solution for this?

CarlosCanto
Community Expert
Community Expert
February 17, 2020

do those files open without issues using the UI? or do you still get the error message?

Monika Gause
Community Expert
Community Expert
February 16, 2020

That's not possible. Paste the code into a text file and then save it. Then you can open it in Illustrator and import it.

StarAG​Author
Known Participant
February 16, 2020

Thats the solution I am already aware of. 

I have a specific requirement as I have to work in many SVG files. Its getting tidious task in exporting and importing. 

 

Is there any kind of tool/plugin available which can perform such task?

Monika Gause
Community Expert
Community Expert
February 16, 2020

I'm not aware of a plugin that does this.