Yes, you can surrender HDFC life policy online by following the below steps:
Visit the official website of HDFC Life
Click on the "Login" button present on the top right corner of the homepage
Enter your Customer ID and Password to login to your account
Click on the "Policy servicing" tab present on the top menu bar
Click on the "Surrender value" tab present under the "Policy servicing" tab
Enter your Policy number and Surrender value
Click on the "Submit" button
The surrender value is the amount that you will get back from the insurer if you cancel your policy before it matures. The insurer deducts certain charges from the surrender value, so the amount that you will receive will be less than the premiums that you have paid.