I need .png file with transparency for web but when I export file as .png I get black background?
I am working in Photoshop and Illustrator.
Windows photo viewer previews transparancies with black background.
Your .PNG will show transparent background if you view it over color in illustrator or other graphics programs.
If this is not true for you make sure your export (save for web) are set to transparency: