I don't want to make a PNG sequence, I just want to make a GIF directly from After Effects. Once I checked out an online tutorial there I could see the GIF option while Rendering composition. But I am not able to see the GIF option anymore, so what I did I made lots of PNG sequence for the same then export it to Photoshop but that is to much time-consuming process and my system just hangs.
When I need to create a GIF from After Effects, I do my animation in After Effects, go to Menu>Composition>Pre-Render and render it out as an uncompressed MOV file. Then you can drag that file onto Photoshop and it will open in the video timeline. From there you can "Save for Web" as an animated GIF file. It's a fairly straight forward process and yields good results. If you need to isolate a small section of the animation for exporting, adjust the working area brackets to that area and that will be the only section exported as a GIF.
This answer is only for Windows OS
There is no reason for 3rd party plugins. Use File > Export> > Add to Adobe Media Encoder Queue.
Inside of the the Adobe Media Encoder there's a lot more control of the rendering including the ability to do Animated Gifs with all sorts of settings:
You could also open the Adobe Media Encoder without opening AE first and just add it to the Queue from there (or dragging from file manager) so that you don't have to even open AE if you're just trying to do an export.
Unfortunately this is no longer inbuilt in AE as at when this response is being composed. Most videos online will recommend importing to photoshop and creating a gif sequence. An alternative is to leverage the use of a third party AE plugin with gifgun being the most popular or a free post export software; instagiffer
You can’t actually export GIFs directly in After Effects without using GIFGun from AEScripts. So as a motion-graphic artist you have four (possibly five) options:
Save a GIF in Photoshop using the Save for Web feature, selecting GIF, and adjusting your settings. You will have to export a video from After Effects and import said video into Photoshop if you do this step.
Use GIFGun to export the GIF directly in After Effects. But it costs money.
Create a GIF using a third-party app like GIF Rocket. Again like the Photoshop method you’ll have to export a video from After Effects first.
Create a GIF using an online platform like Giphy.
(If you have a PC) You can export a GIF from Media Encoder. Not sure why this is only available to PC folks only, but it is an option.
Hope this helps. I actually wrote a whole post and created a tutorial about creating GIFs in After Effects. Check it out: https://www.schoolofmotion.com/blog/gif-in-after-effects